-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PriceChanger
#20
PriceChanger
#20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very clean, we should be able to config the price path in the toml. That way you don't have to recompile every time you change parameters
#[derive(Serialize, Deserialize)] | ||
pub struct PriceChanger { | ||
#[serde(skip)] | ||
pub params: OrnsteinUhlenbeckParams, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future we can make this generic and have a ProcessType
trait. Then impl that on the different param types.
|
||
#[serde(skip)] | ||
#[serde(default = "trajectory_default")] | ||
pub current_chunk: Trajectories, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this name?
self.cursor = 0; | ||
self.value = self.current_chunk.paths.clone()[0][self.cursor]; | ||
self.current_chunk = | ||
ou.euler_maruyama(self.value, 0.0, 100.0, 100_usize, 1_usize, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use seedable
closes #9