pub struct SPT {
pub exps: Vec<SPTExp>,
pub energy_correction_factor: Option<f64>,
pub diameter_correction_factor: Option<f64>,
pub sampler_correction_factor: Option<f64>,
pub idealization_method: SelectionMethod,
}
Fields§
§exps: Vec<SPTExp>
§energy_correction_factor: Option<f64>
§diameter_correction_factor: Option<f64>
§sampler_correction_factor: Option<f64>
§idealization_method: SelectionMethod
Implementations§
Source§impl SPT
impl SPT
Sourcepub fn new(
energy_correction_factor: f64,
diameter_correction_factor: f64,
sampler_correction_factor: f64,
idealization_method: SelectionMethod,
) -> Self
pub fn new( energy_correction_factor: f64, diameter_correction_factor: f64, sampler_correction_factor: f64, idealization_method: SelectionMethod, ) -> Self
Create a new SPT
§Arguments
energy_correction_factor
- Energy correction factor to convert N value to N60diameter_correction_factor
- Borehole diameter correction factorsampler_correction_factor
- Sampler correction factoridealization_method
- Idealization method to use when combining the layers
Sourcepub fn apply_energy_correction(&mut self, energy_correction_factor: f64)
pub fn apply_energy_correction(&mut self, energy_correction_factor: f64)
Apply energy correction
§Arguments
energy_correction_factor
- Energy correction factor to convert N value to N60
Sourcepub fn get_idealized_exp(&self, name: String) -> SPTExp
pub fn get_idealized_exp(&self, name: String) -> SPTExp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SPT
impl<'de> Deserialize<'de> for SPT
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SPT
impl RefUnwindSafe for SPT
impl Send for SPT
impl Sync for SPT
impl Unpin for SPT
impl UnwindSafe for SPT
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more