hep.aida.ref.fitter.fitdata
Class FitData
- java.lang.Object
-
- hep.aida.ref.fitter.fitdata.FitData
-
- All Implemented Interfaces:
- IDevFitData, IFitData
public class FitData extends java.lang.Object implements IDevFitData
-
-
Constructor Summary
Constructors Constructor and Description FitData()Creates a new instance of FitData
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcreate1DConnection(double[] x, double[] y, double[] corrMatrix)Create a one dimensional connection to a set of measurements with corresponding correlation matrix.voidcreate1DConnection(ICloud1D cloud)Create a one dimensional connection to an ICloud1D.voidcreate1DConnection(IDataPointSet dataPointSet, int xIndex, int valIndex)Create a one dimensional connection to an IDataPointSet.voidcreate1DConnection(IHistogram1D hist)1D connections.voidcreate1DConnection(IProfile1D profile)Create a one dimensional connection to an IProfile1D.voidcreate1DConnection(java.lang.Object data)voidcreate2DConnection(ICloud2D cloud)Create a two dimensional connection to an ICloud2D.voidcreate2DConnection(ICloud2D cloud, int xIndex, int yIndex)Create a two dimensional connection to an ICloud2D.voidcreate2DConnection(IDataPointSet dataPointSet, int xIndex, int yIndex, int valIndex)Create a two dimensional connection to an IDataPointSet.voidcreate2DConnection(IHistogram2D hist)2D connections.voidcreate2DConnection(IHistogram2D hist, int xIndex, int yIndex)Create a two dimensional connection to an IHistogram2D.voidcreate2DConnection(IProfile2D profile)Create a two dimensional connection to an IProfile2D.voidcreate2DConnection(IProfile2D profile, int xIndex, int yIndex)Create a two dimensional connection to an IProfile2D.voidcreate3DConnection(ICloud3D cloud)Create a three dimensional connection to an ICloud3D.voidcreate3DConnection(ICloud3D cloud, int xIndex, int yIndex, int zIndex)Create a three dimensional connection to an ICloud3D.voidcreate3DConnection(IDataPointSet dataPointSet, int xIndex, int yIndex, int zIndex, int valIndex)Create a three dimensional connection to an IDataPointSet.voidcreate3DConnection(IHistogram3D hist)3D connections.voidcreate3DConnection(IHistogram3D hist, int xIndex, int yIndex, int zIndex)Create a three dimensional connection to an IHistogram3D.voidcreateConnection(IDataPointSet dataPointSet, int[] indeces, int valIndex)Generic connections.voidcreateConnection(ITuple tuple, IEvaluator[] evals)Create a connection to an ITuple.voidcreateConnection(ITuple tuple, java.lang.String[] colNames)Create a connection to an ITuple.java.lang.StringdataDescription()IDevFitDataIteratordataIterator()Get the iterator on the data.intdimension()The dimension of this IFitData, i.e.intfitType()Get the type of fit this data is suitable for.IRangeSetrange(int index)Get Range of the corresponding connection by index.voidreset()Remove all Ranges and connections; after this is like newly create.
-
-
-
Method Detail
-
create1DConnection
public void create1DConnection(java.lang.Object data)
-
create1DConnection
public void create1DConnection(IHistogram1D hist) throws java.lang.IllegalArgumentException
1D connections.- Specified by:
create1DConnectionin interfaceIFitData- Parameters:
hist- The 1D histogram to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create1DConnection
public void create1DConnection(IProfile1D profile) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a one dimensional connection to an IProfile1D.- Specified by:
create1DConnectionin interfaceIFitData- Parameters:
profile- The 1D profile to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create1DConnection
public void create1DConnection(ICloud1D cloud) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a one dimensional connection to an ICloud1D.- Specified by:
create1DConnectionin interfaceIFitData- Parameters:
cloud- The 1D cloud to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create1DConnection
public void create1DConnection(IDataPointSet dataPointSet, int xIndex, int valIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a one dimensional connection to an IDataPointSet.- Specified by:
create1DConnectionin interfaceIFitData- Parameters:
dataPointSet- The dataPointSet to which to connect to.xIndex- The index of the coordinate to which the variable is connected.valIndex- The index of the coordinate used as "height".- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create1DConnection
public void create1DConnection(double[] x, double[] y, double[] corrMatrix) throws java.lang.IllegalArgumentExceptionDescription copied from interface:IFitDataCreate a one dimensional connection to a set of measurements with corresponding correlation matrix.- Specified by:
create1DConnectionin interfaceIFitData- Parameters:
x- The x coordinate of the measurement.y- The y coordinate of the measurement.corrMatrix- The correlation matrix provided as a simple array. Please refer to the specific implementation's documentation on how to convert a matrix to a one dimensional array.- Throws:
java.lang.IllegalArgumentException- If something is wrong (if the dimensions of the arrays are incompatible).
-
create2DConnection
public void create2DConnection(IHistogram2D hist) throws java.lang.IllegalArgumentException
2D connections.- Specified by:
create2DConnectionin interfaceIFitData- Parameters:
hist- The 2D histogram to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create2DConnection
public void create2DConnection(IHistogram2D hist, int xIndex, int yIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a two dimensional connection to an IHistogram2D.- Specified by:
create2DConnectionin interfaceIFitData- Parameters:
hist- The 2D histogram to which to connect to.xIndex- The index of the axis to which the x variable is connected.yIndex- The index of the axis to which the y variable is connected.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create2DConnection
public void create2DConnection(IProfile2D profile) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a two dimensional connection to an IProfile2D.- Specified by:
create2DConnectionin interfaceIFitData- Parameters:
profile- The 2D profile to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create2DConnection
public void create2DConnection(IProfile2D profile, int xIndex, int yIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a two dimensional connection to an IProfile2D.- Specified by:
create2DConnectionin interfaceIFitData- Parameters:
profile- The 2D profile to which to connect to.xIndex- The index of the axis to which the x variable is connected.yIndex- The index of the axis to which the y variable is connected.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create2DConnection
public void create2DConnection(ICloud2D cloud) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a two dimensional connection to an ICloud2D.- Specified by:
create2DConnectionin interfaceIFitData- Parameters:
cloud- The 2D cloud to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create2DConnection
public void create2DConnection(ICloud2D cloud, int xIndex, int yIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a two dimensional connection to an ICloud2D.- Specified by:
create2DConnectionin interfaceIFitData- Parameters:
cloud- The 2D cloud to which to connect to.xIndex- The index of the axis to which the x variable is connected.yIndex- The index of the axis to which the y variable is connected.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create2DConnection
public void create2DConnection(IDataPointSet dataPointSet, int xIndex, int yIndex, int valIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a two dimensional connection to an IDataPointSet.- Specified by:
create2DConnectionin interfaceIFitData- Parameters:
dataPointSet- The dataPointSet to which to connect to.xIndex- The index of the coordinate to which the x variable is connected.yIndex- The index of the coordinate to which the y variable is connected.valIndex- The index of the coordinate used as "height".- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create3DConnection
public void create3DConnection(IHistogram3D hist) throws java.lang.IllegalArgumentException
3D connections.- Specified by:
create3DConnectionin interfaceIFitData- Parameters:
hist- The 3D histogram to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create3DConnection
public void create3DConnection(IHistogram3D hist, int xIndex, int yIndex, int zIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a three dimensional connection to an IHistogram3D.- Specified by:
create3DConnectionin interfaceIFitData- Parameters:
hist- The 3D histogram to which to connect to.xIndex- The index of the axis to which the x variable is connected.yIndex- The index of the axis to which the y variable is connected.zIndex- The index of the axis to which the z variable is connected.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create3DConnection
public void create3DConnection(ICloud3D cloud) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a three dimensional connection to an ICloud3D.- Specified by:
create3DConnectionin interfaceIFitData- Parameters:
cloud- The 3D cloud to which to connect to.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create3DConnection
public void create3DConnection(ICloud3D cloud, int xIndex, int yIndex, int zIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a three dimensional connection to an ICloud3D.- Specified by:
create3DConnectionin interfaceIFitData- Parameters:
cloud- The 3D cloud to which to connect to.xIndex- The index of the axis to which the x variable is connected.yIndex- The index of the axis to which the y variable is connected.zIndex- The index of the axis to which the z variable is connected.- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
create3DConnection
public void create3DConnection(IDataPointSet dataPointSet, int xIndex, int yIndex, int zIndex, int valIndex) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataCreate a three dimensional connection to an IDataPointSet.- Specified by:
create3DConnectionin interfaceIFitData- Parameters:
dataPointSet- The dataPointSet to which to connect to.xIndex- The index of the coordinate to which the x variable is connected.yIndex- The index of the coordinate to which the y variable is connected.zIndex- The index of the coordinate to which the z variable is connected.valIndex- The index of the coordinate used as "height".- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
createConnection
public void createConnection(IDataPointSet dataPointSet, int[] indeces, int valIndex) throws java.lang.IllegalArgumentException
Generic connections.- Specified by:
createConnectionin interfaceIFitData- Parameters:
dataPointSet- The dataPointSet to which to connect to.indeces- The indeces of the coordinates to which the variables are connected.valIndex- The index of the coordinate used as "height".- Throws:
java.lang.IllegalArgumentException- If something is wrong.
-
createConnection
public void createConnection(ITuple tuple, IEvaluator[] evals)
Description copied from interface:IFitDataCreate a connection to an ITuple.- Specified by:
createConnectionin interfaceIFitData- Parameters:
tuple- The ITuple.evals- The list of the IEvaluator used to calculate the variable's value.
-
createConnection
public void createConnection(ITuple tuple, java.lang.String[] colNames)
Description copied from interface:IFitDataCreate a connection to an ITuple.- Specified by:
createConnectionin interfaceIFitData- Parameters:
tuple- The ITuple.colNames- The names of the columns to which to connect.
-
range
public IRangeSet range(int index) throws java.lang.IllegalArgumentException
Description copied from interface:IFitDataGet Range of the corresponding connection by index. The index represent the order in which connections are coming out of the IFitData.
-
dataIterator
public IDevFitDataIterator dataIterator()
Description copied from interface:IDevFitDataGet the iterator on the data.- Specified by:
dataIteratorin interfaceIDevFitData- Returns:
- The iterator.
-
dimension
public int dimension()
Description copied from interface:IFitDataThe dimension of this IFitData, i.e. the number of connections.
-
dataDescription
public java.lang.String dataDescription()
- Specified by:
dataDescriptionin interfaceIFitData
-
reset
public void reset()
Description copied from interface:IFitDataRemove all Ranges and connections; after this is like newly create.
-
fitType
public int fitType()
Description copied from interface:IDevFitDataGet the type of fit this data is suitable for.- Specified by:
fitTypein interfaceIDevFitData- Returns:
- The type fit. Either IDevFitter.BINNED_FIT or IDevFitter.UNBINNED_FIT.
-
-
DMelt 3.0 © DataMelt by jWork.ORG