Jpp  17.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JFIT::JMEstimatorNormalWithBackground Struct Reference

Normal M-estimator with background. More...

#include <JMEstimator.hh>

Inheritance diagram for JFIT::JMEstimatorNormalWithBackground:
JFIT::JMEstimator

Public Member Functions

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

Public Attributes

double p
 

Detailed Description

Normal M-estimator with background.

Definition at line 152 of file JMEstimator.hh.

Constructor & Destructor Documentation

JFIT::JMEstimatorNormalWithBackground::JMEstimatorNormalWithBackground ( const double  p)
inline

Constructor.

Parameters
pbackground probability

Definition at line 160 of file JMEstimator.hh.

160  :
161  p(p)
162  {}

Member Function Documentation

virtual double JFIT::JMEstimatorNormalWithBackground::getRho ( const double  z) const
inlineoverridevirtual

Get maximum likelihood estimate.

Parameters
zdeviation
Returns
likelihood

Implements JFIT::JMEstimator.

Definition at line 164 of file JMEstimator.hh.

165  {
166  const double w = exp(-0.5*z*z);
167 
168  return -log(w + p);
169  }
data_type w[N+1][M+1]
Definition: JPolint.hh:778
then cat $TRIPOD_INITIAL<< EOF1 256877.5 4743716.7-2438.42 256815.5 4743395.0-2435.53 257096.2 4743636.0-2439.5EOFfiif[[!-f $DETECTOR]];then JEditDetector-a $DETECTOR_INITIAL-s"-1 addz -6.9"-o $DETECTOR--!eval`JPrintDetector-a $DETECTOR-O SUMMARY`for STRING in ${STRINGS[*]};do set_variable MODULE`getModule-a $DETECTOR-L"$STRING 0"`JEditDetector-a $DETECTOR-M"$MODULE setz -2.9"-o $DETECTOR--!donefiif[[!-f $TRIPOD]];then cp-p $TRIPOD_INITIAL $TRIPODfiJAcoustics.sh $DETECTOR_IDcat > acoustics_trigger_parameters txt<< EOFQ=0.0;TMax_s=0.020;numberOfHits=90;EOFJAcousticsEventBuilder.sh $DETECTOR $RUNS[*]INPUT_FILES=(`ls KM3NeT_ ${(l:8::0::0:) DETECTOR_ID}_0 *${^RUNS}_event.root`) cd $WORKDIRif[!$HOMEDIR-ef $WORKDIR];then cp-p $HOMEDIR/$DETECTOR $WORKDIR cp-p $HOMEDIR/${^ACOUSTICS_KEYS}.txt $WORKDIR cp-p $HOMEDIR/${^INPUT_FILES}$WORKDIRfisource $JPP_DIR/examples/JAcoustics/acoustics-fit-toolkit.shtimer_startinitialise stage_b 1 0 100.0e-6 0.002 0.1 0 > &stage log
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable STRING $argv[2] set_array QUANTILES set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable MODULE `getModule -a $DETECTOR -L "$STRING 0"` source JAcousticsToolkit.sh typeset -A TRIPODS get_tripods $WORKDIR/tripod.txt TRIPODS XMEAN
virtual double JFIT::JMEstimatorNormalWithBackground::getPsi ( const double  z) const
inlineoverridevirtual

Get derivative of maximum likelihood estimate.

Parameters
zdeviation
Returns
derivative

Implements JFIT::JMEstimator.

Definition at line 171 of file JMEstimator.hh.

172  {
173  const double w = exp(-0.5*z*z);
174 
175  return z * w / (w + p);
176  }
data_type w[N+1][M+1]
Definition: JPolint.hh:778
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable STRING $argv[2] set_array QUANTILES set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable MODULE `getModule -a $DETECTOR -L "$STRING 0"` source JAcousticsToolkit.sh typeset -A TRIPODS get_tripods $WORKDIR/tripod.txt TRIPODS XMEAN

Member Data Documentation

double JFIT::JMEstimatorNormalWithBackground::p

Definition at line 178 of file JMEstimator.hh.


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