Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Public Member Functions | List of all members
JFIT::JMEstimatorLinear Struct Reference

Linear M-estimator. More...

#include <JMEstimator.hh>

Inheritance diagram for JFIT::JMEstimatorLinear:
JFIT::JMEstimator

Public Member Functions

virtual double getRho (const double z) const
 Get maximum likelihood estimate. More...
 
virtual double getPsi (const double z) const
 Get derivative of maximum likelihood estimate. More...
 

Detailed Description

Linear M-estimator.

This estimator produces a linear dependence for large deviations.

Definition at line 78 of file JMEstimator.hh.

Member Function Documentation

◆ getRho()

virtual double JFIT::JMEstimatorLinear::getRho ( const double  z) const
inlinevirtual

Get maximum likelihood estimate.

Parameters
zdeviation
Returns
likelihood

Implements JFIT::JMEstimator.

Definition at line 81 of file JMEstimator.hh.

81 { return sqrt(1.0 + 0.5*z*z) - 1.0; }

◆ getPsi()

virtual double JFIT::JMEstimatorLinear::getPsi ( const double  z) const
inlinevirtual

Get derivative of maximum likelihood estimate.

Parameters
zdeviation
Returns
derivative

Implements JFIT::JMEstimator.

Definition at line 82 of file JMEstimator.hh.

82 { return 0.5 * z / sqrt(1.0 + 0.5*z*z); }

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