public abstract class KDensityMD extends Object implements HighestDensityRegions, DrawableDensity
Modifier and Type | Field and Description |
---|---|
protected double[] |
FDescriptorsImportance |
protected int[] |
FImportantFactors |
protected boolean |
FIsEnabled |
protected int |
FNumberOfFactors |
protected int |
FNumberOfImportantFactors |
Constructor and Description |
---|
KDensityMD(int number)
MVDE class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
AssignHPDLevels(double[][] m)
AssignHPDLevels
HighestDensityRegions interface
|
void |
AssignHPDLevels(int numberOfLevels)
AssignHPDLevels
HighestDensityRegions interface
|
boolean |
EstimateDensityFromData(Jama.Matrix points,
TransformFilter filter)
EstimateDensityFromData
Estimates density from set of points
If filter is not null, then density in transformed space is estimated
|
Jama.Matrix |
get2DgridPoints(int[] xnumbers,
double[] xmin,
double[] xmax,
double[] currentPoint,
int GridResolution)
get2DGridPoints
|
double[] |
getAmplitude(Jama.Matrix points) |
double[] |
getCoverageValues(Jama.Matrix points)
getCoverageValues
calculates Highest Density Region of a set of points
|
double[] |
getDensityValues(Jama.Matrix points)
points for which density values are to be calculated
points for which density values are to be calculated
|
int[] |
getHPDCounters()
getHPDCounters()
HighestDensityRegions interface
|
double |
getHPDLevelsError(int index)
getHPDLevelsError()
HighestDensityRegions interface
|
abstract void |
getMostDenseVector(double[] p)
getmostDenseVector
|
boolean |
Grid2ContourGrid(double[] grid)
Grid2ContourGrid
uses precalculated MultivariateHPDLevels to store HPD values for each grid cell
|
boolean |
HPDBySorting(Jama.Matrix points)
HighestDensityRegions interface
|
abstract double |
maxAmplitude()
MaxAmplitude
|
double[] |
to1DGrid(int[] xnumbers,
double[] xmin,
double[] xmax,
double[] currentPoint,
int GridResolution)
to1dGrid
DrawableDensity interface
this is general solution, write more efficient one in the subclass
|
double[] |
to1DGridUnfiltered(int[] xnumbers,
double[] xmin,
double[] xmax,
double[] currentPoint,
int GridResolution)
Deprecated.
to1DGridUnfiltered
Density Drawable interface
|
double[] |
to2DGrid(int[] xnumbers,
double[] xmin,
double[] xmax,
double[] currentPoint,
int GridResolution)
to2DGrid
Density Drawable interface
|
double[] |
to2DGridUnfiltered(int[] xnumbers,
double[] xmin,
double[] xmax,
double[] currentPoint,
int GridResolution)
to2DGridUnfiltered
Density Drawable interface
|
String |
toString() |
protected int FNumberOfFactors
protected int FNumberOfImportantFactors
protected int[] FImportantFactors
protected double[] FDescriptorsImportance
protected boolean FIsEnabled
public KDensityMD(int number)
number
- the number of descriptors (dimensionality of the descriptor space)public abstract double maxAmplitude()
public double[] getAmplitude(Jama.Matrix points)
points
- public boolean EstimateDensityFromData(Jama.Matrix points, TransformFilter filter)
points
- filter
- public double[] getDensityValues(Jama.Matrix points)
points
- public double[] getCoverageValues(Jama.Matrix points)
points
- public abstract void getMostDenseVector(double[] p)
p
- return parameter, contains point for which density value is maximumpublic boolean Grid2ContourGrid(double[] grid)
grid
- contains density values on input, HPD values on outputpublic void AssignHPDLevels(double[][] m)
AssignHPDLevels
in interface HighestDensityRegions
public void AssignHPDLevels(int numberOfLevels)
AssignHPDLevels
in interface HighestDensityRegions
numberOfLevels
- public int[] getHPDCounters()
getHPDCounters
in interface HighestDensityRegions
public double getHPDLevelsError(int index)
getHPDLevelsError
in interface HighestDensityRegions
index
- public boolean HPDBySorting(Jama.Matrix points)
HPDBySorting
in interface HighestDensityRegions
points
- public double[] to1DGrid(int[] xnumbers, double[] xmin, double[] xmax, double[] currentPoint, int GridResolution)
to1DGrid
in interface DrawableDensity
xnumbers
- xmin
- xmax
- currentPoint
- GridResolution
- public double[] to1DGridUnfiltered(int[] xnumbers, double[] xmin, double[] xmax, double[] currentPoint, int GridResolution)
to1DGridUnfiltered
in interface DrawableDensity
xnumbers
- xmin
- xmax
- currentPoint
- GridResolution
- public Jama.Matrix get2DgridPoints(int[] xnumbers, double[] xmin, double[] xmax, double[] currentPoint, int GridResolution)
xnumbers
- xmin
- xmax
- currentPoint
- GridResolution
- Matrix
public double[] to2DGrid(int[] xnumbers, double[] xmin, double[] xmax, double[] currentPoint, int GridResolution)
to2DGrid
in interface DrawableDensity
xnumbers
- xmin
- xmax
- currentPoint
- GridResolution
- public double[] to2DGridUnfiltered(int[] xnumbers, double[] xmin, double[] xmax, double[] currentPoint, int GridResolution)
to2DGridUnfiltered
in interface DrawableDensity
xnumbers
- xmin
- xmax
- currentPoint
- GridResolution
- Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.