Struct KcodeResult

pub struct KcodeResult {
Show 19 fields pub collision: f64, pub absorption: f64, pub track_length: f64, pub av_collision: f64, pub av_collision_sigma: f64, pub av_absorption: f64, pub av_absorption_sigma: f64, pub av_track_length: f64, pub av_track_length_sigma: f64, pub av_col_abs_trk: f64, pub av_col_abs_trk_sigma: f64, pub av_col_abs_trk_by_cycle: f64, pub av_col_abs_trk_by_cycle_sigma: f64, pub lifetime_collision: f64, pub lifetime_absorption: f64, pub av_lifetime: f64, pub av_lifetime_sigma: f64, pub n_histories: f64, pub fom: f64,
}
Expand description

KCODE quantities for a cycle

Fields§

§collision: f64

keff collision (col)

§absorption: f64

keff absorption (abs)

§track_length: f64

keff track length (trk)

§av_collision: f64

Average keff collision

§av_collision_sigma: f64

Average keff collision, standard deviation

§av_absorption: f64

Average keff absorption

§av_absorption_sigma: f64

Average keff absorption, standard deviation

§av_track_length: f64

Average keff track length

§av_track_length_sigma: f64

Average keff track length, standard deviation

§av_col_abs_trk: f64

Average col/abs/trk keff

§av_col_abs_trk_sigma: f64

Average col/abs/trk keff, standard deviation

§av_col_abs_trk_by_cycle: f64

Average col/abs/trk keff by cycles skipped

§av_col_abs_trk_by_cycle_sigma: f64

Average col/abs/trk keff by cycles skipped, standard deviation

§lifetime_collision: f64

Prompt removal lifetime (collision)

§lifetime_absorption: f64

Prompt removal lifetime (absorption)

§av_lifetime: f64

Prompt removal lifetime (col/abs/trk-len)

§av_lifetime_sigma: f64

Prompt removal lifetime (col/abs/trk-len), standard deviation

§n_histories: f64

Number of histories used in the cycle

§fom: f64

Figure of merit (when mct on PRDMP is 1)

Implementations§

§

impl KcodeResult

pub fn to_vec(&self) -> Vec<f64>

Return Kcode parameters as a vector

Trait Implementations§

§

impl Debug for KcodeResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl<T> TryFrom<&[T]> for KcodeResult
where T: Into<f64> + Copy,

§

fn try_from(values: &[T]) -> Result<Self, Self::Error>

Initialise a KcodeResult from a list of numbers

This will fail on any list not 18-19 values long.

§

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.