Struct lather::Simulation
[−]
[src]
pub struct Simulation { /* fields omitted */ }
A model of a star with spots that can be observed.
Methods
impl Simulation
[src]
fn new(filename: &str) -> Simulation
Construct a new Star from a config file.
fn observe_flux(
&mut self,
time: &[f64],
wavelength_min: f64,
wavelength_max: f64
) -> Vec<f64>
&mut self,
time: &[f64],
wavelength_min: f64,
wavelength_max: f64
) -> Vec<f64>
Computes the relative brightness of this system at each time (in days),
when observed in the wavelength band between wavelength_min
and wavelength_max
.
fn observe_rv(
&mut self,
time: &[f64],
wavelength_min: f64,
wavelength_max: f64
) -> Vec<Observation>
&mut self,
time: &[f64],
wavelength_min: f64,
wavelength_max: f64
) -> Vec<Observation>
Computes the radial velocity and line bisector of this system at each time (in days),
when observed in the wavelength band between wavelength_min
and wavelength_max
.
fn draw_rgba(&mut self, time: f64, image: &mut Vec<u8>)
Draw the simulation in a row-major fashion, as it would be seen in the visible wavelength band, 4000-7000 Angstroms.
fn undraw_rgba(&mut self, time: f64, image: &mut Vec<u8>)
Removes the spots that would be drawn by draw_rgba.