Class ControlChartScatterPlotModel<Color,Row,C>
- java.lang.Object
-
- com.macrofocus.high_d.scatterplot.AbstractScatterPlotModel<Color,Row,C>
-
- com.macrofocus.high_d.controlchart.ControlChartScatterPlotModel<Color,Row,C>
-
- All Implemented Interfaces:
ScatterPlotModel<Color,Row,C>,com.macrofocus.visual.VisualObjects<Row>
public class ControlChartScatterPlotModel<Color,Row,C> extends AbstractScatterPlotModel<Color,Row,C> implements com.macrofocus.visual.VisualObjects<Row>
-
-
Constructor Summary
Constructors Constructor Description ControlChartScatterPlotModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame)ControlChartScatterPlotModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame, com.macrofocus.visual.Visual<Color,Row,C> visual)ControlChartScatterPlotModel(com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame, com.macrofocus.molap.dataframe.DataFrame<?,C,?> annotationDataFrame, com.macrofocus.visual.Visual<Color,Row,C> visual, com.macrofocus.high_d.axis.group.AxisGroupModel<Row,C> axisGroupModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.math3.linear.RealMatrixcomputeCovarianceMatrix(org.apache.commons.math3.linear.RealMatrix matrix, boolean biasCorrected)java.lang.NumbercomputeT2(Row row)doublecovariance(double[] xArray, double[] yArray, boolean biasCorrected)com.macrofocus.molap.dataframe.DataFramegetAnnotationDataFrame()com.macrofocus.high_d.axis.group.AxisGroupModelgetAxisGroupModel()com.macrofocus.coloring.MutableColoring<Color,Row>getColoring()Gets model holding the colors of each object.com.macrofocus.colormapping.MutableColorMapping<Color,Row,C>getColorMapping()Gets model holding the color mapping of each object.com.macrofocus.molap.dataframe.DataFramegetDataFrame()Filter<Row>getFilter()Obtains the model used for filtering objects in the scatter plot.RowgetObject(int index)intgetObjectCount()Returns the number of data objects (typically rows).MutableSingleSelection<Row>getProbing()Obtains the model used for probing objects in the scatter plot (aka mouse over).MutableSelection<Row>getSelection()Obtains the model used for selecting objects in the scatter plot.MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel>getSize()com.macrofocus.high_d.axis.AxisModelgetSizeAxisModel()com.macrofocus.visual.Visual<Color,Row,C>getVisual()MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel<Row,C>>getX()com.macrofocus.high_d.axis.AxisModelgetXAxisModel()MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel<Row,C>>getY()MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel<Row,C>>getY2()com.macrofocus.high_d.axis.AxisModelgetY2AxisModel()com.macrofocus.high_d.axis.AxisModelgetYAxisModel()protected doublemean(double[] values)voidupdate(org.apache.commons.math3.linear.RealMatrix matrix)protected doublevariance(double[] values, boolean isBiasCorrected)protected doublevariance(double[] values, double mean, boolean isBiasCorrected)-
Methods inherited from class com.macrofocus.high_d.scatterplot.AbstractScatterPlotModel
addScatterPlotListener, fireScatterPlotChanged, removeScatterPlotListener
-
-
-
-
Constructor Detail
-
ControlChartScatterPlotModel
public ControlChartScatterPlotModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame)
-
ControlChartScatterPlotModel
public ControlChartScatterPlotModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame, com.macrofocus.visual.Visual<Color,Row,C> visual)
-
ControlChartScatterPlotModel
public ControlChartScatterPlotModel(com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame, com.macrofocus.molap.dataframe.DataFrame<?,C,?> annotationDataFrame, com.macrofocus.visual.Visual<Color,Row,C> visual, com.macrofocus.high_d.axis.group.AxisGroupModel<Row,C> axisGroupModel)
-
-
Method Detail
-
update
public void update(org.apache.commons.math3.linear.RealMatrix matrix)
-
mean
protected double mean(double[] values)
-
variance
protected double variance(double[] values, boolean isBiasCorrected)
-
variance
protected double variance(double[] values, double mean, boolean isBiasCorrected)
-
computeCovarianceMatrix
protected org.apache.commons.math3.linear.RealMatrix computeCovarianceMatrix(org.apache.commons.math3.linear.RealMatrix matrix, boolean biasCorrected) throws org.apache.commons.math3.exception.MathIllegalArgumentException- Throws:
org.apache.commons.math3.exception.MathIllegalArgumentException
-
covariance
public double covariance(double[] xArray, double[] yArray, boolean biasCorrected) throws org.apache.commons.math3.exception.MathIllegalArgumentException- Throws:
org.apache.commons.math3.exception.MathIllegalArgumentException
-
computeT2
public java.lang.Number computeT2(Row row)
-
getVisual
public com.macrofocus.visual.Visual<Color,Row,C> getVisual()
- Specified by:
getVisualin interfaceScatterPlotModel<Color,Row,C>
-
getAxisGroupModel
public com.macrofocus.high_d.axis.group.AxisGroupModel getAxisGroupModel()
- Specified by:
getAxisGroupModelin interfaceScatterPlotModel<Color,Row,C>
-
getProbing
public MutableSingleSelection<Row> getProbing()
Description copied from interface:ScatterPlotModelObtains the model used for probing objects in the scatter plot (aka mouse over).- Specified by:
getProbingin interfaceScatterPlotModel<Color,Row,C>- Returns:
- the model used for probing.
-
getSelection
public MutableSelection<Row> getSelection()
Description copied from interface:ScatterPlotModelObtains the model used for selecting objects in the scatter plot.- Specified by:
getSelectionin interfaceScatterPlotModel<Color,Row,C>- Returns:
- the model used for selection.
-
getFilter
public Filter<Row> getFilter()
Description copied from interface:ScatterPlotModelObtains the model used for filtering objects in the scatter plot.- Specified by:
getFilterin interfaceScatterPlotModel<Color,Row,C>- Returns:
- the model used for filtering.
-
getColorMapping
public com.macrofocus.colormapping.MutableColorMapping<Color,Row,C> getColorMapping()
Description copied from interface:ScatterPlotModelGets model holding the color mapping of each object.- Specified by:
getColorMappingin interfaceScatterPlotModel<Color,Row,C>- Returns:
- the model holding the color of each object.
-
getColoring
public com.macrofocus.coloring.MutableColoring<Color,Row> getColoring()
Description copied from interface:ScatterPlotModelGets model holding the colors of each object.- Specified by:
getColoringin interfaceScatterPlotModel<Color,Row,C>- Returns:
- the model holding the color of each object.
-
getObjectCount
public int getObjectCount()
Description copied from interface:ScatterPlotModelReturns the number of data objects (typically rows).- Specified by:
getObjectCountin interfaceScatterPlotModel<Color,Row,C>- Specified by:
getObjectCountin interfacecom.macrofocus.visual.VisualObjects<Color>- Returns:
- the number of data objects
-
getObject
public Row getObject(int index)
-
getXAxisModel
public com.macrofocus.high_d.axis.AxisModel getXAxisModel()
- Specified by:
getXAxisModelin interfaceScatterPlotModel<Color,Row,C>
-
getY2AxisModel
public com.macrofocus.high_d.axis.AxisModel getY2AxisModel()
- Specified by:
getY2AxisModelin interfaceScatterPlotModel<Color,Row,C>
-
getYAxisModel
public com.macrofocus.high_d.axis.AxisModel getYAxisModel()
- Specified by:
getYAxisModelin interfaceScatterPlotModel<Color,Row,C>
-
getSizeAxisModel
public com.macrofocus.high_d.axis.AxisModel getSizeAxisModel()
- Specified by:
getSizeAxisModelin interfaceScatterPlotModel<Color,Row,C>
-
getX
public MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel<Row,C>> getX()
- Specified by:
getXin interfaceScatterPlotModel<Color,Row,C>
-
getY
public MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel<Row,C>> getY()
- Specified by:
getYin interfaceScatterPlotModel<Color,Row,C>
-
getY2
public MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel<Row,C>> getY2()
- Specified by:
getY2in interfaceScatterPlotModel<Color,Row,C>
-
getSize
public MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel> getSize()
- Specified by:
getSizein interfaceScatterPlotModel<Color,Row,C>
-
getDataFrame
public com.macrofocus.molap.dataframe.DataFrame getDataFrame()
- Specified by:
getDataFramein interfaceScatterPlotModel<Color,Row,C>
-
getAnnotationDataFrame
public com.macrofocus.molap.dataframe.DataFrame getAnnotationDataFrame()
- Specified by:
getAnnotationDataFramein interfaceScatterPlotModel<Color,Row,C>
-
-