pub struct CPT<V> {
alpha: V,
beta: V,
lambda: V,
gamma: V,
delta: V,
}Fields§
§alpha: V§beta: V§lambda: V§gamma: V§delta: VImplementations§
Source§impl<V> CPT<V>
impl<V> CPT<V>
pub fn reset(&mut self, alpha: V, beta: V, lambda: V, gamma: V, delta: V)
fn w(p: V, e: V) -> V
Sourcefn positive_weight(&self, p: V) -> V
fn positive_weight(&self, p: V) -> V
Computes a probability weighting function for gains
Sourcefn negative_weight(&self, p: V) -> V
fn negative_weight(&self, p: V) -> V
Computes a probability weighting function for losses
Sourcefn positive_value(&self, x: V) -> V
fn positive_value(&self, x: V) -> V
Computes a value funciton for positive value
Sourcefn negative_value(&self, x: V) -> V
fn negative_value(&self, x: V) -> V
Computes a value funciton for negative value
Sourcefn positive_valuate<P: Container<Idx, Output = V>, Idx: Copy>(
&self,
positive_level_sets: &[(V, Vec<Idx>)],
prob: &P,
) -> V
fn positive_valuate<P: Container<Idx, Output = V>, Idx: Copy>( &self, positive_level_sets: &[(V, Vec<Idx>)], prob: &P, ) -> V
Computes Choquet integral of a positive function
Sourcefn negative_valuate<P: Container<Idx, Output = V>, Idx: Copy>(
&self,
negative_level_sets: &[(V, Vec<Idx>)],
prob: &P,
) -> V
fn negative_valuate<P: Container<Idx, Output = V>, Idx: Copy>( &self, negative_level_sets: &[(V, Vec<Idx>)], prob: &P, ) -> V
Computes Choquet integral of a negative function
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for CPT<V>where
V: Freeze,
impl<V> RefUnwindSafe for CPT<V>where
V: RefUnwindSafe,
impl<V> Send for CPT<V>where
V: Send,
impl<V> Sync for CPT<V>where
V: Sync,
impl<V> Unpin for CPT<V>where
V: Unpin,
impl<V> UnwindSafe for CPT<V>where
V: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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