pub fn add_y(&mut self, val : f32) {
        match self.yunits {
            Yunits::Transmittance => {
                self.y_values.push(val * self.y_factor);            
            }
            Yunits::Absorbance => {
                self.y_values.push(1.0 - val * self.y_factor);
            }
        }
    }
// Add a single y value to the Spectra
Add a single y value to the Spectra
Add a single y value to the Spectra
pub fn add_y(&mut self, val : f32) {
        match self.yunits {
            Yunits::Transmittance => {
                self.y_values.push(val * self.y_factor);            
            }
            Yunits::Absorbance => {
                self.y_values.push(1.0 - val * self.y_factor);
            }
        }
    }
pub fn add_y ( & mut self , val : f32 ) { match self . yunits { Yunits :: Transmittance => { self . y_values . push ( val * self . y_factor ) ; } Yunits :: Absorbance => { self . y_values . push ( 1.0 - val * self . y_factor ) ; } } }
Add a single y value to the Spectra
Add a single y value to the Spectra
&mut self
val
f32
&mut self
val
f32