Class MultiturnBetaSensitivityMatrixContributor
- java.lang.Object
-
- cern.accsoft.steering.aloha.plugin.multiturn.sensitivity.MultiturnBetaSensitivityMatrixContributor
-
- All Implemented Interfaces:
BeanAware,MachineElementsManagerAware,NoiseWeighterAware,SensitivityMatrixContributor
public class MultiturnBetaSensitivityMatrixContributor extends java.lang.Object implements SensitivityMatrixContributor, MachineElementsManagerAware, NoiseWeighterAware
-
-
Constructor Summary
Constructors Constructor Description MultiturnBetaSensitivityMatrixContributor(MultiturnMeasurement multiturnMeasurement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jama.MatrixcalcCorrectorSensitivityMatrix()Jama.MatrixcalcMonitorSensitivityMatrix()PerturbedColumncalcPerturbedColumn(double delta, java.lang.Double normalizationFactor)Jama.MatrixgetDifferenceVector()Jama.MatrixgetDifferenceVectorErrors()This method must return a vector which has the same dimensions as the difference-vector as returned bySensitivityMatrixContributor.getDifferenceVector().intgetMatrixRowCount()this method can be called to determine the designated number of rows of the matrices that will be produced by this contributor.MeasurementgetMeasurement()java.lang.StringgetName()voidinitUnperturbed()this method is called by theSensitivityMatrixManagerImpl, to make it possible for the contributors to store their unperturbed values, in order to be able to correctly calculate the perturbed values later on.voidsetMachineElementsManager(MachineElementsManager machineElementsManager)by the use of this method theMachineElementsManageris injected if the class is configured by theAlohaBeanFactoryvoidsetMultiturnMeasurement(MultiturnMeasurement multiturnMeasurement)voidsetNoiseWeighter(NoiseWeighter noiseWeighter)this method is used by theAlohaBeanFactoryto inject theNoiseWeighterinstance
-
-
-
Constructor Detail
-
MultiturnBetaSensitivityMatrixContributor
public MultiturnBetaSensitivityMatrixContributor(MultiturnMeasurement multiturnMeasurement)
-
-
Method Detail
-
calcCorrectorSensitivityMatrix
public Jama.Matrix calcCorrectorSensitivityMatrix()
- Specified by:
calcCorrectorSensitivityMatrixin interfaceSensitivityMatrixContributor- Returns:
- the part of the sensitivity-matrix corresponding to the corrector-gains.
-
calcMonitorSensitivityMatrix
public Jama.Matrix calcMonitorSensitivityMatrix()
- Specified by:
calcMonitorSensitivityMatrixin interfaceSensitivityMatrixContributor- Returns:
- the part of the sensitivity-matrix corresponding to the monitor-gains.
-
calcPerturbedColumn
public PerturbedColumn calcPerturbedColumn(double delta, java.lang.Double normalizationFactor)
- Specified by:
calcPerturbedColumnin interfaceSensitivityMatrixContributor- Parameters:
delta- the variation that was used to trim the parameter. This is needed by the method to calc the gradient correctly.normalizationFactor- the normalization factor to use to calc the column. If none is given (null) then the own normalization-factor must be calculated by the method.- Returns:
- a column, which represents the perturbation of the actual values in comparison to the default one.
-
getDifferenceVector
public Jama.Matrix getDifferenceVector()
- Specified by:
getDifferenceVectorin interfaceSensitivityMatrixContributor- Returns:
- the difference-vector between measurement-model, corresponding to the rows in the other matrices
-
getMatrixRowCount
public int getMatrixRowCount()
Description copied from interface:SensitivityMatrixContributorthis method can be called to determine the designated number of rows of the matrices that will be produced by this contributor.- Specified by:
getMatrixRowCountin interfaceSensitivityMatrixContributor- Returns:
- the number of rows of the matrices.
-
getMeasurement
public Measurement getMeasurement()
- Specified by:
getMeasurementin interfaceSensitivityMatrixContributor- Returns:
- the measurement to which this contributor is related to.
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceSensitivityMatrixContributor- Returns:
- a name for the contributor, which can be displayed
-
initUnperturbed
public void initUnperturbed()
Description copied from interface:SensitivityMatrixContributorthis method is called by theSensitivityMatrixManagerImpl, to make it possible for the contributors to store their unperturbed values, in order to be able to correctly calculate the perturbed values later on.- Specified by:
initUnperturbedin interfaceSensitivityMatrixContributor
-
setMultiturnMeasurement
public void setMultiturnMeasurement(MultiturnMeasurement multiturnMeasurement)
-
setMachineElementsManager
public void setMachineElementsManager(MachineElementsManager machineElementsManager)
Description copied from interface:MachineElementsManagerAwareby the use of this method theMachineElementsManageris injected if the class is configured by theAlohaBeanFactory- Specified by:
setMachineElementsManagerin interfaceMachineElementsManagerAware
-
setNoiseWeighter
public void setNoiseWeighter(NoiseWeighter noiseWeighter)
Description copied from interface:NoiseWeighterAwarethis method is used by theAlohaBeanFactoryto inject theNoiseWeighterinstance- Specified by:
setNoiseWeighterin interfaceNoiseWeighterAware- Parameters:
noiseWeighter- theNoiseWeighterto be used by the class
-
getDifferenceVectorErrors
public Jama.Matrix getDifferenceVectorErrors()
Description copied from interface:SensitivityMatrixContributorThis method must return a vector which has the same dimensions as the difference-vector as returned bySensitivityMatrixContributor.getDifferenceVector(). This vector shall represent the errors on the difference vector. It will be used to estimate the errors on the fitted parameters.- Specified by:
getDifferenceVectorErrorsin interfaceSensitivityMatrixContributor- Returns:
- a vector representing the errors on the difference vector.
-
-