45 std::vector<Eigen::MatrixX<T>>
Cinv;
51 std::vector<Eigen::MatrixX<T>>
L;
88 template <
typename T2>
Eigen::Matrix< T, Dynamic, Dynamic > MatrixX
Dynamic-size, column-major dense matrix.
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
gsl::span< T > span
Span type alias using gsl::span (C++17 fallback).
constexpr T pi() noexcept
Returns the mathematical constant pi.
Mixture of Probabilistic Principal Component Analyzers (MPPCA).
void set(const VectorX< T > &pi, const MatrixX< T > &mmu, momentum::span< const MatrixX< T > > W, const VectorX< T > &sigma2)
Initializes the model from raw mixture parameters and precomputes Cinv, L, and Rpre for fast log-like...
std::vector< Eigen::MatrixX< float > > L
std::vector< Eigen::MatrixX< float > > Cinv
bool isApprox(const MppcaT< T > &mppcaT) const
Returns true if every member matches mppcaT exactly (d, p, names) or approximately (mu,...
MppcaT< T2 > cast() const
Returns a copy of this model with all numeric data converted to scalar type T2.
Eigen::VectorX< float > Rpre
std::vector< std::string > names
Eigen::MatrixX< float > mu