java.io.Serializable
, MOAObject
public class DensityGrid extends CFCluster
LS, N, radiusFactor, SS
Constructor | Description |
---|---|
DensityGrid(int[] c) |
A constructor method for a density grid
|
DensityGrid(DensityGrid dg) |
A constructor method for a density grid
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.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.
|
java.util.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) |
|
java.lang.String |
toString() |
Returns a description of the object.
|
copy, copy, measureByteSize, measureByteSize
add, addVectors, getCenter, getN, getWeight, setN
getDescription, getGroundTruth, getId, getInfo, getMeasureValue, isGroundTruth, setGroundTruth, setId, setMeasureValue, setMeasureValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
combine, getCenterDistance, getCenterDistance, getClusterSpecificInfo, getDistanceVector, getDistanceVector, getHullDistance, merge, overlapRadiusDegree, overlapSave, sample, setCenter, setRadius, setWeight
public DensityGrid(int[] c)
c
- the coordinates of the density gridpublic DensityGrid(DensityGrid dg)
dg
- the density grid to copypublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object being compared for equalitypublic int hashCode()
hashCode
in class java.lang.Object
public java.util.ArrayList<DensityGrid> getNeighbours()
public int[] getCoordinates()
public int getDimensions()
public java.lang.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.