Package jline.api.mam

Class Mamap2m_fit_fb_multiclassKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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 MAMAPm
        p - Vector of class probabilities
        F - Vector of forward moments
        B - Vector of backward moments
        classWeights - Optional vector of weights for each class
        fbWeights - Optional 2-vector of weights for forward and backward moments
        Returns:

        Triple of (fitted MMAP, feasible forward moments, feasible backward moments)