Class KickResponseSensitivityMatrixContributor
- java.lang.Object
-
- cern.accsoft.steering.aloha.plugin.kickresp.sensitivity.KickResponseSensitivityMatrixContributor
-
- All Implemented Interfaces:
BeanAware,MachineElementsManagerAware,NoiseWeighterAware,SensitivityMatrixContributor
public class KickResponseSensitivityMatrixContributor extends java.lang.Object implements SensitivityMatrixContributor, NoiseWeighterAware, MachineElementsManagerAware
this class creates the parts of the sensitivity-matrix which correspond to kick-response measurements
-
-
Constructor Summary
Constructors Constructor Description KickResponseSensitivityMatrixContributor()
-
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().MachineElementsManagergetMachineElementsManager()intgetMatrixRowCount()this method can be called to determine the designated number of rows of the matrices that will be produced by this contributor.KickResponseMeasurementImplgetMeasurement()java.lang.StringgetName()Jama.MatrixgetUnperturbedModelResponseMatrix()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 machinElementsManager)by the use of this method theMachineElementsManageris injected if the class is configured by theAlohaBeanFactoryvoidsetMeasurement(KickResponseMeasurementImpl kickResponseMeasurement)voidsetNoiseWeighter(NoiseWeighter noiseWeighter)this method is used by theAlohaBeanFactoryto inject theNoiseWeighterinstance
-
-
-
Method Detail
-
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.
-
calcMonitorSensitivityMatrix
public Jama.Matrix calcMonitorSensitivityMatrix()
- Specified by:
calcMonitorSensitivityMatrixin interfaceSensitivityMatrixContributor- Returns:
- the part of the sensitivity-matrix corresponding to the monitor-gains.
-
calcCorrectorSensitivityMatrix
public Jama.Matrix calcCorrectorSensitivityMatrix()
- Specified by:
calcCorrectorSensitivityMatrixin interfaceSensitivityMatrixContributor- Returns:
- the part of the sensitivity-matrix corresponding to the corrector-gains.
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceSensitivityMatrixContributor- Returns:
- a name for the contributor, which can be displayed
-
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.
-
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
-
getDifferenceVector
public Jama.Matrix getDifferenceVector()
- Specified by:
getDifferenceVectorin interfaceSensitivityMatrixContributor- Returns:
- the difference-vector between measurement-model, corresponding to the rows in the other matrices
-
setNoiseWeighter
public void setNoiseWeighter(NoiseWeighter noiseWeighter)
Description copied from interface:NoiseWeighterAwarethis method is used by theAlohaBeanFactoryto inject theNoiseWeighterinstance- Specified by:
setNoiseWeighterin interfaceNoiseWeighterAware- Parameters:
noiseWeighter- the noiseWeighter to set
-
setMachineElementsManager
public void setMachineElementsManager(MachineElementsManager machinElementsManager)
Description copied from interface:MachineElementsManagerAwareby the use of this method theMachineElementsManageris injected if the class is configured by theAlohaBeanFactory- Specified by:
setMachineElementsManagerin interfaceMachineElementsManagerAware- Parameters:
machinElementsManager- the machinElementsManager to set
-
getMachineElementsManager
public MachineElementsManager getMachineElementsManager()
- Returns:
- the machinElementsManager
-
getUnperturbedModelResponseMatrix
public Jama.Matrix getUnperturbedModelResponseMatrix()
- Returns:
- the unperturbedModelResponseMatrix
-
setMeasurement
public void setMeasurement(KickResponseMeasurementImpl kickResponseMeasurement)
- Parameters:
kickResponseMeasurement- the combinedKickResponseData to set
-
getMeasurement
public KickResponseMeasurementImpl getMeasurement()
- Specified by:
getMeasurementin interfaceSensitivityMatrixContributor- Returns:
- the measurement to which this contributor is related to.
-
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.
-
-