Crate csta

Source
Expand description

This file contains the Randomizable trait and the basic vector types with all the operations implemented.

§CSTA

csta is a library for simulating and analyzing complex systems. It is designed to be modular and easy to use.

§Features

Modules§

constraints
gamma
hist
Histogram module.
indexing
A module containing Indexing utilities for 2D and 3D grids with static dimensions The main purpose of this module is to provide a way to index into a 1D array as if it were a 2D or 3D array And not using x, y, z coordinates, but a single index that is transformed. This is useful for implementing cellular automata and other grid-based algorithms The main advantage of this approach is that it is faster than using a 2D or 3D array And it is more flexible than using a 1D array and manually calculating the index
markov
Markov chain-like module
montecarlo
Contains the MonteCarlo struct and its implementation. The MonteCarlo struct is a wrapper around rand::Rng and rand::distributions::Distribution<f64>. It is used to generate random data and iterate over it.
prelude
This module contains the most commonly used types and traits in the library.

Structs§

CartesianCoord2
CartesianCoord3
CartesianCoord4
SphericalCoord2
SphericalCoord3
SphericalCoord4
Vec2
A 2D vector.
Vec3
A 3D vector.
Vec4
A 4D vector.

Traits§

Randomizable
Its like Default but it generates a random value on a given distribution.