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<(), Error>

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<KcodeResult, <KcodeResult as TryFrom<&[T]>>::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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.