jphase.fit

## Class MomentsADPH2Fit

- java.lang.Object
- - jphase.fit.DiscPhaseFitter
  - - jphase.fit.MomentsDiscPhaseFitter
    - - jphase.fit.MomentsADPH2Fit

- All Implemented Interfaces:
    PhaseFitter

      public class MomentsADPH2Fit
      extends MomentsDiscPhaseFitter

  This class implements the Matching Moments method proposed by Telek and Heindl in "Matching Moments for Acyclic discrete and continuous Phase-Type distributions of Second order", 2002. This method returns a Discrete Phase-type distribution.
  Version:
    1.0
  Author:
    Juan F. Perez

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MomentsADPH2Fit(double m1, double m2, double m3)`
    `MomentsADPH2Fit(int[] data)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DiscPhaseVar` | `fit()` Executes the fitting procedure to find the parameter set

    - ### Methods inherited from class jphase.fit.DiscPhaseFitter

      `getLogLikelihood`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MomentsADPH2Fit

          public MomentsADPH2Fit(int[] data)

      See Also:
        `MomentsDiscPhaseFitter.MomentsDiscPhaseFitter(int[])`

    - #### MomentsADPH2Fit

          public MomentsADPH2Fit(double m1,
                         double m2,
                         double m3)

      See Also:
        `MomentsDiscPhaseFitter.MomentsDiscPhaseFitter(double, double, double)`

  - ### Method Detail

    - #### fit

          public DiscPhaseVar fit()

      Description copied from interface: `PhaseFitter`
      Executes the fitting procedure to find the parameter set
      Specified by:
        `fit` in interface `PhaseFitter`
      Specified by:
        `fit` in class `DiscPhaseFitter`
      Returns:
        Phase variable found
      See Also:
        `PhaseFitter.fit()`