public class DensityGrid extends CFCluster
LS, N, radiusFactor, SS
Constructor and Description |
---|
DensityGrid(DensityGrid dg)
A constructor method for a density grid
|
DensityGrid(int[] c)
A constructor method for a density grid
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Overrides Object's method equals to declare that two DensityGrids are equal iff their
dimensions are the same and each of their corresponding coordinates are the same.
|
CFCluster |
getCF()
Returns a reference to the DensityGrid.
|
int[] |
getCoordinates() |
int |
getDimensions() |
double |
getInclusionProbability(Instance instance)
Provides the probability of the argument instance belonging to the density grid in question.
|
ArrayList<DensityGrid> |
getNeighbours()
Generates an Array List of neighbours for this density grid by varying each coordinate
by one in either direction.
|
double |
getRadius()
Provides the radius of a density grid.
|
int |
hashCode()
Overrides Object's method hashCode to generate a hashCode for DensityGrids based on
their coordinates.
|
boolean |
isVisited() |
void |
setVisited(boolean isVisited) |
String |
toString()
Returns a description of the object.
|
add, addVectors, getCenter, getN, getWeight, setN
combine, getCenterDistance, getCenterDistance, getClusterSpecificInfo, getDistanceVector, getDistanceVector, getHullDistance, merge, overlapRadiusDegree, overlapSave, sample, setCenter, setRadius, setWeight
getDescription, getGroundTruth, getId, getInfo, getMeasureValue, isGroundTruth, setGroundTruth, setId, setMeasureValue, setMeasureValue
copy, copy, measureByteSize, measureByteSize
public DensityGrid(int[] c)
c
- the coordinates of the density gridpublic DensityGrid(DensityGrid dg)
dg
- the density grid to copypublic boolean equals(Object o)
public int hashCode()
public ArrayList<DensityGrid> getNeighbours()
public int[] getCoordinates()
public int getDimensions()
public String toString()
AbstractMOAObject
toString
in class AbstractMOAObject
public CFCluster getCF()
public double getInclusionProbability(Instance instance)
getInclusionProbability
in class CFCluster
public double getRadius()
public boolean isVisited()
public void setVisited(boolean isVisited)
isVisited
- the isVisited to setCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.