CIM

Trait CIM 

Source
pub trait CIM:
    Clone
    + Debug
    + Labelled
    + PartialEq
    + AbsDiffEq
    + RelativeEq {
    type Support;
    type Parameters;
    type Statistics;

    // Required methods
    fn conditioning_labels(&self) -> &Labels;
    fn parameters(&self) -> &Self::Parameters;
    fn parameters_size(&self) -> usize;
    fn sample_statistics(&self) -> Option<&Self::Statistics>;
    fn sample_log_likelihood(&self) -> Option<f64>;
}
Expand description

A trait for conditional intensity matrices.

Required Associated Types§

Source

type Support

The type of the support.

Source

type Parameters

The type of the parameters.

Source

type Statistics

The type of the sufficient statistics.

Required Methods§

Source

fn conditioning_labels(&self) -> &Labels

Returns the labels of the conditioned variables.

§Returns

A reference to the conditioning labels.

Source

fn parameters(&self) -> &Self::Parameters

Returns the parameters.

§Returns

A reference to the parameters.

Source

fn parameters_size(&self) -> usize

Returns the parameters size.

§Returns

The parameters size.

Source

fn sample_statistics(&self) -> Option<&Self::Statistics>

Returns the sufficient statistics, if any.

§Returns

An option containing a reference to the sufficient statistics.

Source

fn sample_log_likelihood(&self) -> Option<f64>

Returns the log-likelihood of the fitted dataset, if any.

§Returns

An option containing the log-likelihood.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§