dynamo.sim.state_space_sampler
- dynamo.sim.state_space_sampler(ode, dim, seed_num=19491001, clip=True, min_val=0, max_val=4, N=10000)[source]
Sample N points from the dim dimension gene expression space while restricting the values to be between min_val and max_val. Velocity vector at the sampled points will be calculated according to ode function.
- Parameters:
ode (
Callable
) – The ODE function that will be used to calculate the velocity vector at the sampled points.dim (
int
) – The dimension of the gene expression space.seed_num (
int
) – The seed number for the random number generator. Defaults to 19491001.clip (
bool
) – Whether to clip data points that are negative. Defaults to True.min_val (
float
) – The minimum value of the gene expression space. Defaults to 0.max_val (
float
) – The maximum value of the gene expression space. Defaults to 4.N (
int
) – The number of points to sample. Defaults to 10000.
- Return type:
- Returns:
The sampled points from the gene expression space and the corresponding velocity vector.