Package jline.api.mam
Class Mamap2m_fit_fb_multiclassKt
-
- All Implemented Interfaces:
public final class Mamap2m_fit_fb_multiclassKt
-
-
Method Summary
Modifier and Type Method Description final static Triple<MatrixCell, DoubleArray, DoubleArray>
mamap2m_fit_fb_multiclass(MatrixCell map, DoubleArray p, DoubleArray F, DoubleArray B, DoubleArray classWeights, DoubleArray fbWeights)
Performs approximate fitting of a MMAP given the underlying MAP, the class probabilities, forward moments, and backward moments. -
-
Method Detail
-
mamap2m_fit_fb_multiclass
final static Triple<MatrixCell, DoubleArray, DoubleArray> mamap2m_fit_fb_multiclass(MatrixCell map, DoubleArray p, DoubleArray F, DoubleArray B, DoubleArray classWeights, DoubleArray fbWeights)
Performs approximate fitting of a MMAP given the underlying MAP, the class probabilities, forward moments, and backward moments.
- Parameters:
map
- Second-order AMAP underlying the MAMAPmp
- Vector of class probabilitiesF
- Vector of forward momentsB
- Vector of backward momentsclassWeights
- Optional vector of weights for each classfbWeights
- Optional 2-vector of weights for forward and backward moments- Returns:
Triple of (fitted MMAP, feasible forward moments, feasible backward moments)
-
-
-
-