morpho.processors.sampling.GaussianRooFitProcessor module

Some template vars

Members: GaussianRooFitProcessor

Functions:

Classes:

Processor for linear fitting Authors: M. Guigue Date: 06/26/18

Summary

Data:

Reference

class morpho.processors.sampling.GaussianRooFitProcessor.GaussianRooFitProcessor(name, *args, **kwargs)[source]

Bases: morpho.processors.sampling.RooFitInterfaceProcessor.RooFitInterfaceProcessor

Linear fit of data using RootFit Likelihood sampler. We redefine the _defineDataset method as this analysis requires datapoints in a 2D space. Users should feel free to change this method as they see fit.

Parameters:
  • varName (required) – name(s) of the variable in the data
  • nuisanceParams (required) – parameters to be discarded at end of sampling
  • interestParams (required) – parameters to be saved in the results variable
  • iter (required) – total number of iterations (warmup and sampling)
  • warmup – number of warmup iterations (default=iter/2)
  • chain – number of chains (default=1)
  • n_jobs – number of parallel cores running (default=1)
  • binned – should do binned analysis (default=false)
  • options – other options
  • a (required) – range of slopes (list)
  • b (required) – range of intercepts (list)
  • x (required) – range of x (list)
  • y (required) – range of y (list)
  • witdh (required) – range of width (list)
Input:
data: dictionary containing model input data
Results:
results: dictionary containing the result of the sampling of the parameters of interest
InternalConfigure(config_dict)[source]

Method called by Configure() to set up the object. Must be overridden by child class.

definePdf(wspace)[source]

Define the model which is that the residual of the linear fit should be normally distributed.