termoshtt / eom

Configurable ODE/PDE solver
MIT License
59 stars 8 forks source link

RandomInit trait for models #24

Closed termoshtt closed 6 years ago

termoshtt commented 7 years ago

Most model should have a moderate random initial state, which is placed on the attractor. However, we cannot choose good initial point for all parameters. Thus, this should be return Result value, and assured to return value for default setting.

trait RandomInit {
  fn random_init(&self) -> Result<ArrayBase<S, D>, DivergenceError>
}
termoshtt commented 6 years ago

This will be hard since this need time evolution while we cannot specialize them...