GeneralBrokenLines V03-01-02
gblpy3
|
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 | 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 gblpy3.gblfit.GblData.__init__ | ( | self, | |
aLabel = 0 , |
|||
aType = 0 , |
|||
aValue = 0. , |
|||
aPrec = 0. , |
|||
aMeas = 0 |
|||
) |
def gblpy3.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 gblpy3.gblfit.GblData.__derivatives, gblpy3.gblfit.GblMeasurement.__globalDerivatives, gblpy3.gblfit.GblData.__globalDerivatives, gblpy3.gblfit.GblMeasurement.__globalLabels, gblpy3.gblfit.GblData.__globalLabels, and gblpy3.gblfit.GblData.__parameters.
def gblpy3.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 gblpy3.gblfit.GblData.__derivatives, and gblpy3.gblfit.GblData.__parameters.
def gblpy3.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 647 of file gblfit.py.
References gblpy3.gblfit.GblData.__parameters.
def gblpy3.gblfit.GblData.fromRecord | ( | self, | |
dataList | |||
) |
Set data components (from MP binaty record)
dataList | data components; list |
Definition at line 637 of file gblfit.py.
References gblpy3.gblfit.GblData.__derivatives, gblpy3.gblfit.GblMeasurement.__globalDerivatives, gblpy3.gblfit.GblData.__globalDerivatives, gblpy3.gblfit.GblMeasurement.__globalLabels, gblpy3.gblfit.GblData.__globalLabels, gblpy3.gblfit.GblData.__parameters, gblpy3.gblfit.GblData.__precision, gblsit3.gblSiliconLayer.__precision, and gblpy3.gblfit.GblData.__value.
def gblpy3.gblfit.GblData.getChi2 | ( | self | ) |
Calculate Chi2 (contribution) from data.
For down-weighting with M-estimators the corresponding objective function is used.
Definition at line 582 of file gblfit.py.
References gblpy3.gblfit.GblData.__dwMethod, gblpy3.gblfit.GblData.__precision, gblsit3.gblSiliconLayer.__precision, gblpy3.gblfit.GblData.__prediction, and gblpy3.gblfit.GblData.__value.
def gblpy3.gblfit.GblData.getIndex | ( | self | ) |
Get index.
Definition at line 615 of file gblfit.py.
References gblpy3.gblfit.GblData.__index.
def gblpy3.gblfit.GblData.getLabel | ( | self | ) |
Get Label.
Definition at line 601 of file gblfit.py.
References gblpy3.gblfit.GblPoint.__label, and gblpy3.gblfit.GblData.__label.
def gblpy3.gblfit.GblData.getMatrices | ( | self | ) |
Calculate compressed matrix and right hand side from data.
Definition at line 530 of file gblfit.py.
References gblpy3.gblfit.GblData.__derivatives, gblpy3.gblfit.GblData.__downWeight, gblpy3.gblfit.GblData.__parameters, gblpy3.gblfit.GblData.__precision, gblsit3.gblSiliconLayer.__precision, and gblpy3.gblfit.GblData.__value.
def gblpy3.gblfit.GblData.getResidual | ( | self | ) |
Get data for residual (and errors).
Definition at line 622 of file gblfit.py.
References gblpy3.gblfit.GblData.__derivatives, gblpy3.gblfit.GblData.__downWeight, gblpy3.gblfit.GblData.__parameters, gblpy3.gblfit.GblData.__precision, gblsit3.gblSiliconLayer.__precision, gblpy3.gblfit.GblData.__prediction, and gblpy3.gblfit.GblData.__value.
def gblpy3.gblfit.GblData.getType | ( | self | ) |
Get type.
Definition at line 608 of file gblfit.py.
References gblpy3.gblfit.GblPoint.__type, and gblpy3.gblfit.GblData.__type.
def gblpy3.gblfit.GblData.printData | ( | self | ) |
Print data.
Definition at line 656 of file gblfit.py.
References gblpy3.gblfit.GblData.__derivatives, gblpy3.gblfit.GblMeasurement.__globalDerivatives, gblpy3.gblfit.GblData.__globalDerivatives, gblpy3.gblfit.GblMeasurement.__globalLabels, gblpy3.gblfit.GblData.__globalLabels, gblpy3.gblfit.GblPoint.__label, gblpy3.gblfit.GblData.__label, gblpy3.gblfit.GblData.__parameters, gblpy3.gblfit.GblData.__precision, gblsit3.gblSiliconLayer.__precision, gblpy3.gblfit.GblPoint.__type, gblpy3.gblfit.GblData.__type, and gblpy3.gblfit.GblData.__value.
def gblpy3.gblfit.GblData.setDownWeighting | ( | self, | |
aMethod | |||
) |
Outlier down weighting with M-estimators.
aMethod | method (1=Tukey, 2=Huber, 3=Cauchy); int |
Definition at line 558 of file gblfit.py.
References gblpy3.gblfit.GblData.__downWeight, gblpy3.gblfit.GblData.__dwMethod, gblpy3.gblfit.GblData.__precision, gblsit3.gblSiliconLayer.__precision, gblpy3.gblfit.GblData.__prediction, and gblpy3.gblfit.GblData.__value.
def gblpy3.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 gblpy3.gblfit.GblData.__derivatives, gblpy3.gblfit.GblData.__parameters, and gblpy3.gblfit.GblData.__prediction.
def gblpy3.gblfit.GblData.toRecord | ( | self | ) |
Get data components (for copying to MP binaty record)
Definition at line 629 of file gblfit.py.
References gblpy3.gblfit.GblData.__derivatives, gblpy3.gblfit.GblMeasurement.__globalDerivatives, gblpy3.gblfit.GblData.__globalDerivatives, gblpy3.gblfit.GblMeasurement.__globalLabels, gblpy3.gblfit.GblData.__globalLabels, gblpy3.gblfit.GblData.__parameters, gblpy3.gblfit.GblData.__precision, gblsit3.gblSiliconLayer.__precision, and gblpy3.gblfit.GblData.__value.
|
private |
derivatives (prediction vs fit parameters); list(float)
Definition at line 479 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.addDerivatives(), gblpy3.gblfit.GblData.addExtDerivatives(), gblpy3.gblfit.GblData.fromRecord(), gblpy3.gblfit.GblData.getMatrices(), gblpy3.gblfit.GblData.getResidual(), gblpy3.gblfit.GblData.printData(), gblpy3.gblfit.GblData.setPrediction(), and gblpy3.gblfit.GblData.toRecord().
|
private |
down weighting factor (M-estimators); float
Definition at line 473 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.getMatrices(), gblpy3.gblfit.GblData.getResidual(), and gblpy3.gblfit.GblData.setDownWeighting().
|
private |
down weighting method; int
Definition at line 471 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.getChi2(), and gblpy3.gblfit.GblData.setDownWeighting().
|
private |
derivatives (prediction vs global parameters); list(float)
Definition at line 483 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.addDerivatives(), gblpy3.gblfit.GblMeasurement.addGlobals(), gblpy3.gblfit.GblData.fromRecord(), gblpy3.gblfit.GblMeasurement.getGlobalDerivatives(), gblpy3.gblfit.GblData.printData(), gblpy3.gblfit.GblMeasurement.printMeasurement(), and gblpy3.gblfit.GblData.toRecord().
|
private |
labels of global parameters; list(int)
Definition at line 481 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.addDerivatives(), gblpy3.gblfit.GblMeasurement.addGlobals(), gblpy3.gblfit.GblData.fromRecord(), gblpy3.gblfit.GblMeasurement.getGlobalLabels(), gblpy3.gblfit.GblData.printData(), and gblpy3.gblfit.GblData.toRecord().
|
private |
index for internal measurement
Definition at line 465 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.getIndex().
|
private |
label of corresponding point; int
Definition at line 461 of file gblfit.py.
Referenced by gblpy3.gblfit.GblPoint.getLabel(), gblpy3.gblfit.GblData.getLabel(), gblpy3.gblfit.GblData.printData(), gblpy3.gblfit.GblPoint.printPoint(), and gblpy3.gblfit.GblPoint.setLabel().
|
private |
labels of fit parameters (with non zero derivative); list(int)
Definition at line 477 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.addDerivatives(), gblpy3.gblfit.GblData.addExtDerivatives(), gblpy3.gblfit.GblData.analyzeData(), gblpy3.gblfit.GblData.fromRecord(), gblpy3.gblfit.GblData.getMatrices(), gblpy3.gblfit.GblData.getResidual(), gblpy3.gblfit.GblData.printData(), gblpy3.gblfit.GblData.setPrediction(), and gblpy3.gblfit.GblData.toRecord().
|
private |
precision (diagonal element of inverse covariance matrix); float
Definition at line 469 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.fromRecord(), gblpy3.gblfit.GblData.getChi2(), gblpy3.gblfit.GblData.getMatrices(), gblsit3.gblSiliconLayer.getPrecision(), gblpy3.gblfit.GblData.getResidual(), gblpy3.gblfit.GblData.printData(), gblpy3.gblfit.GblData.setDownWeighting(), and gblpy3.gblfit.GblData.toRecord().
|
private |
prediction (for value from fit); float
Definition at line 475 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.getChi2(), gblpy3.gblfit.GblData.getResidual(), gblpy3.gblfit.GblData.setDownWeighting(), and gblpy3.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 gblpy3.gblfit.GblData.getType(), gblpy3.gblfit.GblPoint.isFirst(), gblpy3.gblfit.GblPoint.isLast(), gblpy3.gblfit.GblData.printData(), and gblpy3.gblfit.GblPoint.setType().
|
private |
value (residual or kink); float
Definition at line 467 of file gblfit.py.
Referenced by gblpy3.gblfit.GblData.fromRecord(), gblpy3.gblfit.GblData.getChi2(), gblpy3.gblfit.GblData.getMatrices(), gblpy3.gblfit.GblData.getResidual(), gblpy3.gblfit.GblData.printData(), gblpy3.gblfit.GblData.setDownWeighting(), and gblpy3.gblfit.GblData.toRecord().