EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
Loading...
Searching...
No Matches
Emrys::MixtureParams< Component_, Allocator_ >::Entry Struct Reference

One weighted component. More...

#include <EmrysFilter/Distributions/Mixture.h>

Inheritance diagram for Emrys::MixtureParams< Component_, Allocator_ >::Entry:

Public Member Functions

 Entry (Scalar weight, ComponentType held)
 The component held with log-weight weight.
template<typename A>
requires (std::is_constructible_v<ComponentType, ComponentType const &, A const &>)
 Entry (Entry const &other, A const &allocator)
 Copies other with its component in storage from allocator.
template<typename A>
requires (std::is_constructible_v<ComponentType, ComponentType &&, A const &>)
 Entry (Entry &&other, A const &allocator)
 Moves other with its component into storage from allocator.
 Entry (Entry const &)=default
 copies the weight and the component
 Entry (Entry &&)=default
 moves the weight and the component
Entry & operator= (Entry const &)=default
 Copies into the component's storage.
Entry & operator= (Entry &&)=default
 Moves the weight and the component.

Public Attributes

Scalar logWeight
 the log of the component's (unnormalized) weight
ComponentType component
 the component, in the mixture's space

Detailed Description

template<internal::ComponentOrInfoForm Component_, typename Allocator_ = DefaultAllocator>
struct Emrys::MixtureParams< Component_, Allocator_ >::Entry

One weighted component.

Only ever exposed as const outside the mixture. An entry whose component has an allocator, such as a Hybrid, has its allocator_type, so the mixture's entries build their components from the mixture's allocator when it passes itself on.


The documentation for this struct was generated from the following file: