[−][src]Struct lrl_test_compiler::environment::calibration::NumericCalibration
Fields
unit: String
points: Vec<Point>
Implementations
impl NumericCalibration
[src][−]
const MAXIMUM_POINTS: usize
[src]
pub fn try_new(unit: String, points: Vec<Point>) -> CompilerResult<Self>
[src][−]
Create a lookup table from a series of points
pub fn read_from_file(file: &mut File) -> CompilerResult<Self>
[src]
pub fn write_to_file(&self, file: &mut File) -> CompilerResult<()>
[src][−]
Writes the lookup table to a file in a binary encoding.
fn parse_numeric_points<Iter: Iterator<Item = String>>(
lines: Iter
) -> CompilerResult<Vec<Point>>
[src]
lines: Iter
) -> CompilerResult<Vec<Point>>
fn parse_unit(unit_line: String) -> CompilerResult<String>
[src]
fn parse_point(line: &str) -> CompilerResult<Point>
[src]
pub fn lookup(&self, x_val: u16) -> Option<Frac>
[src]
fn interpolate(&self, index: usize, middle_x: u16) -> Option<Frac>
[src]
pub fn inverse_lookup(&self, y_val: Frac) -> Option<u16>
[src]
fn interpolate_inv(&self, index: usize, middle_y: Frac) -> Option<u16>
[src]
Trait Implementations
impl Clone for NumericCalibration
[src][+]
impl Debug for NumericCalibration
[src][+]
impl Eq for NumericCalibration
[src]
impl Hash for NumericCalibration
[src][+]
impl PartialEq<NumericCalibration> for NumericCalibration
[src][+]
impl StructuralEq for NumericCalibration
[src]
impl StructuralPartialEq for NumericCalibration
[src]
Auto Trait Implementations
impl RefUnwindSafe for NumericCalibration
impl Send for NumericCalibration
impl Sync for NumericCalibration
impl Unpin for NumericCalibration
impl UnwindSafe for NumericCalibration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src][+]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src][+]
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src][+]
Dst: LossyFrom<Src>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,