GeneralBrokenLines V03-01-02
gblpy
|
Data (block) containing value, precision and derivatives for measurements, kinks and external seed. More...
Public Member Functions | |
def | __init__ (self, aLabel=0, aType=0, aValue=0., aPrec=0., aMeas=0) |
Create new data. More... | |
def | addDerivatives (self, iRow, labDer, matDer, derLocal=None, labGlobal=None, derGlobal=None) |
Add derivatives to data (block) from measurements and kinks. More... | |
def | addExtDerivatives (self, indexExt, derExt) |
Add derivatives to data (block) from external seed. More... | |
def | getMatrices (self) |
Calculate compressed matrix and right hand side from data. More... | |
def | setPrediction (self, aVector) |
Calculate prediction for data from fit. More... | |
def | getGlobalLabels (self) |
Get global labels. More... | |
def | setDownWeighting (self, aMethod) |
Outlier down weighting with M-estimators. More... | |
def | getChi2 (self) |
Calculate Chi2 (contribution) from data. More... | |
def | getLabel (self) |
Get Label. More... | |
def | getType (self) |
Get type. More... | |
def | getIndex (self) |
Get index. More... | |
def | getResidual (self) |
Get data for residual (and errors). More... | |
def | toRecord (self) |
Get data components (for copying to MP binaty record) More... | |
def | fromRecord (self, dataList) |
Set data components (from MP binaty record) More... | |
def | analyzeData (self, maxBand) |
Analyze labels of fit parameters to determine number of parameters and border size with given maximal band width. More... | |
def | printData (self) |
Print data. More... | |
Private Attributes | |
__label | |
label of corresponding point; int More... | |
__type | |
type of data (0: none, 1: internal measurement, 2: internal kink, 3: external seed, 4: external measurement); int More... | |
__index | |
index for internal measurement More... | |
__value | |
value (residual or kink); float More... | |
__precision | |
precision (diagonal element of inverse covariance matrix); float More... | |
__dwMethod | |
down weighting method; int More... | |
__downWeight | |
down weighting factor (M-estimators); float More... | |
__prediction | |
prediction (for value from fit); float More... | |
__parameters | |
labels of fit parameters (with non zero derivative); list(int) More... | |
__derivatives | |
derivatives (prediction vs fit parameters); list(float) More... | |
__globalLabels | |
labels of global parameters; list(int) More... | |
__globalDerivatives | |
derivatives (prediction vs global parameters); list(float) More... | |
Data (block) containing value, precision and derivatives for measurements, kinks and external seed.
Created from attributes of GblPoints, used to construct linear equation system for track fit.
def gblpy.gblfit.GblData.__init__ | ( | self, | |
aLabel = 0 , |
|||
aType = 0 , |
|||
aValue = 0. , |
|||
aPrec = 0. , |
|||
aMeas = 0 |
|||
) |
def gblpy.gblfit.GblData.addDerivatives | ( | self, | |
iRow, | |||
labDer, | |||
matDer, | |||
derLocal = None , |
|||
labGlobal = None , |
|||
derGlobal = None |
|||
) |
Add derivatives to data (block) from measurements and kinks.
Generate lists of labels.
iRow | row of measurement (vector); int |
labDer | labels of derivatives vs curvature and band parameters (offsets); vector(int) |
matDer | derivatives vs curvature and band parameters (offsets); matrix(float) |
derLocal | derivatives vs local parameters; list(float) |
labGlobal | labels of global parameters; list(int) |
derGlobal | derivatives vs global parameters; list(float) |
Definition at line 496 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, gblpy.gblfit.GblMeasurement.__globalDerivatives, gblpy.gblfit.GblData.__globalDerivatives, gblpy.gblfit.GblMeasurement.__globalLabels, gblpy.gblfit.GblData.__globalLabels, and gblpy.gblfit.GblData.__parameters.
def gblpy.gblfit.GblData.addExtDerivatives | ( | self, | |
indexExt, | |||
derExt | |||
) |
Add derivatives to data (block) from external seed.
Generate lists of labels.
indexExt | labels from exteranl seed; list(int) |
derExt | derivatives from exteranl seed; list(float) |
Definition at line 520 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, and gblpy.gblfit.GblData.__parameters.
def gblpy.gblfit.GblData.analyzeData | ( | self, | |
maxBand | |||
) |
Analyze labels of fit parameters to determine number of parameters and border size with given maximal band width.
maxBand | maximal band width; int |
Definition at line 653 of file gblfit.py.
References gblpy.gblfit.GblData.__parameters.
def gblpy.gblfit.GblData.fromRecord | ( | self, | |
dataList | |||
) |
Set data components (from MP binaty record)
dataList | data components; list |
Definition at line 643 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, gblpy.gblfit.GblMeasurement.__globalDerivatives, gblpy.gblfit.GblData.__globalDerivatives, gblpy.gblfit.GblMeasurement.__globalLabels, gblpy.gblfit.GblData.__globalLabels, gblpy.gblfit.GblData.__parameters, gblpy.gblfit.GblData.__precision, gblsit.gblSiliconLayer.__precision, and gblpy.gblfit.GblData.__value.
def gblpy.gblfit.GblData.getChi2 | ( | self | ) |
Calculate Chi2 (contribution) from data.
For down-weighting with M-estimators the corresponding objective function is used.
Definition at line 588 of file gblfit.py.
References gblpy.gblfit.GblData.__dwMethod, gblpy.gblfit.GblData.__precision, gblsit.gblSiliconLayer.__precision, gblpy.gblfit.GblData.__prediction, and gblpy.gblfit.GblData.__value.
def gblpy.gblfit.GblData.getGlobalLabels | ( | self | ) |
Get global labels.
Definition at line 556 of file gblfit.py.
References gblpy.gblfit.GblMeasurement.__globalLabels, and gblpy.gblfit.GblData.__globalLabels.
def gblpy.gblfit.GblData.getIndex | ( | self | ) |
Get index.
Definition at line 621 of file gblfit.py.
References gblpy.gblfit.GblData.__index.
def gblpy.gblfit.GblData.getLabel | ( | self | ) |
Get Label.
Definition at line 607 of file gblfit.py.
References gblpy.gblfit.GblPoint.__label, and gblpy.gblfit.GblData.__label.
def gblpy.gblfit.GblData.getMatrices | ( | self | ) |
Calculate compressed matrix and right hand side from data.
Definition at line 530 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, gblpy.gblfit.GblData.__downWeight, gblpy.gblfit.GblData.__parameters, gblpy.gblfit.GblData.__precision, gblsit.gblSiliconLayer.__precision, and gblpy.gblfit.GblData.__value.
def gblpy.gblfit.GblData.getResidual | ( | self | ) |
Get data for residual (and errors).
Definition at line 628 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, gblpy.gblfit.GblData.__downWeight, gblpy.gblfit.GblData.__parameters, gblpy.gblfit.GblData.__precision, gblsit.gblSiliconLayer.__precision, gblpy.gblfit.GblData.__prediction, and gblpy.gblfit.GblData.__value.
def gblpy.gblfit.GblData.getType | ( | self | ) |
Get type.
Definition at line 614 of file gblfit.py.
References gblpy.gblfit.GblPoint.__type, and gblpy.gblfit.GblData.__type.
def gblpy.gblfit.GblData.printData | ( | self | ) |
Print data.
Definition at line 662 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, gblpy.gblfit.GblMeasurement.__globalDerivatives, gblpy.gblfit.GblData.__globalDerivatives, gblpy.gblfit.GblMeasurement.__globalLabels, gblpy.gblfit.GblData.__globalLabels, gblpy.gblfit.GblPoint.__label, gblpy.gblfit.GblData.__label, gblpy.gblfit.GblData.__parameters, gblpy.gblfit.GblData.__precision, gblsit.gblSiliconLayer.__precision, gblpy.gblfit.GblPoint.__type, gblpy.gblfit.GblData.__type, and gblpy.gblfit.GblData.__value.
def gblpy.gblfit.GblData.setDownWeighting | ( | self, | |
aMethod | |||
) |
Outlier down weighting with M-estimators.
aMethod | method (1=Tukey, 2=Huber, 3=Cauchy); int |
Definition at line 564 of file gblfit.py.
References gblpy.gblfit.GblData.__downWeight, gblpy.gblfit.GblData.__dwMethod, gblpy.gblfit.GblData.__precision, gblsit.gblSiliconLayer.__precision, gblpy.gblfit.GblData.__prediction, and gblpy.gblfit.GblData.__value.
def gblpy.gblfit.GblData.setPrediction | ( | self, | |
aVector | |||
) |
Calculate prediction for data from fit.
aVector | values of fit parameters; vector(float) |
Definition at line 541 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, gblpy.gblfit.GblData.__parameters, and gblpy.gblfit.GblData.__prediction.
def gblpy.gblfit.GblData.toRecord | ( | self | ) |
Get data components (for copying to MP binaty record)
Definition at line 635 of file gblfit.py.
References gblpy.gblfit.GblData.__derivatives, gblpy.gblfit.GblMeasurement.__globalDerivatives, gblpy.gblfit.GblData.__globalDerivatives, gblpy.gblfit.GblMeasurement.__globalLabels, gblpy.gblfit.GblData.__globalLabels, gblpy.gblfit.GblData.__parameters, gblpy.gblfit.GblData.__precision, gblsit.gblSiliconLayer.__precision, and gblpy.gblfit.GblData.__value.
|
private |
derivatives (prediction vs fit parameters); list(float)
Definition at line 479 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.addDerivatives(), gblpy.gblfit.GblData.addExtDerivatives(), gblpy.gblfit.GblData.fromRecord(), gblpy.gblfit.GblData.getMatrices(), gblpy.gblfit.GblData.getResidual(), gblpy.gblfit.GblData.printData(), gblpy.gblfit.GblData.setPrediction(), and gblpy.gblfit.GblData.toRecord().
|
private |
down weighting factor (M-estimators); float
Definition at line 473 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.getMatrices(), gblpy.gblfit.GblData.getResidual(), and gblpy.gblfit.GblData.setDownWeighting().
|
private |
down weighting method; int
Definition at line 471 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.getChi2(), and gblpy.gblfit.GblData.setDownWeighting().
|
private |
derivatives (prediction vs global parameters); list(float)
Definition at line 483 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.addDerivatives(), gblpy.gblfit.GblMeasurement.addGlobals(), gblpy.gblfit.GblData.fromRecord(), gblpy.gblfit.GblMeasurement.getGlobalDerivatives(), gblpy.gblfit.GblData.printData(), gblpy.gblfit.GblMeasurement.printMeasurement(), and gblpy.gblfit.GblData.toRecord().
|
private |
labels of global parameters; list(int)
Definition at line 481 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.addDerivatives(), gblpy.gblfit.GblMeasurement.addGlobals(), gblpy.gblfit.GblData.fromRecord(), gblpy.gblfit.GblMeasurement.getGlobalLabels(), gblpy.gblfit.GblData.getGlobalLabels(), gblpy.gblfit.GblData.printData(), and gblpy.gblfit.GblData.toRecord().
|
private |
index for internal measurement
Definition at line 465 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.getIndex().
|
private |
label of corresponding point; int
Definition at line 461 of file gblfit.py.
Referenced by gblpy.gblfit.GblPoint.getLabel(), gblpy.gblfit.GblData.getLabel(), gblpy.gblfit.GblData.printData(), gblpy.gblfit.GblPoint.printPoint(), and gblpy.gblfit.GblPoint.setLabel().
|
private |
labels of fit parameters (with non zero derivative); list(int)
Definition at line 477 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.addDerivatives(), gblpy.gblfit.GblData.addExtDerivatives(), gblpy.gblfit.GblData.analyzeData(), gblpy.gblfit.GblData.fromRecord(), gblpy.gblfit.GblData.getMatrices(), gblpy.gblfit.GblData.getResidual(), gblpy.gblfit.GblData.printData(), gblpy.gblfit.GblData.setPrediction(), and gblpy.gblfit.GblData.toRecord().
|
private |
precision (diagonal element of inverse covariance matrix); float
Definition at line 469 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.fromRecord(), gblpy.gblfit.GblData.getChi2(), gblpy.gblfit.GblData.getMatrices(), gblsit.gblSiliconLayer.getPrecision(), gblpy.gblfit.GblData.getResidual(), gblpy.gblfit.GblData.printData(), gblpy.gblfit.GblData.setDownWeighting(), and gblpy.gblfit.GblData.toRecord().
|
private |
prediction (for value from fit); float
Definition at line 475 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.getChi2(), gblpy.gblfit.GblData.getResidual(), gblpy.gblfit.GblData.setDownWeighting(), and gblpy.gblfit.GblData.setPrediction().
|
private |
type of data (0: none, 1: internal measurement, 2: internal kink, 3: external seed, 4: external measurement); int
Definition at line 463 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.getType(), gblpy.gblfit.GblPoint.isFirst(), gblpy.gblfit.GblPoint.isLast(), gblpy.gblfit.GblData.printData(), and gblpy.gblfit.GblPoint.setType().
|
private |
value (residual or kink); float
Definition at line 467 of file gblfit.py.
Referenced by gblpy.gblfit.GblData.fromRecord(), gblpy.gblfit.GblData.getChi2(), gblpy.gblfit.GblData.getMatrices(), gblpy.gblfit.GblData.getResidual(), gblpy.gblfit.GblData.printData(), gblpy.gblfit.GblData.setDownWeighting(), and gblpy.gblfit.GblData.toRecord().