public class GenericHierarchicalSpatialDataStructure extends GenericHierarchicalStatisticalDataStructure implements HierarchicalSpatialDataStructure
Modifier and Type | Field and Description |
---|---|
protected boolean |
angleCalculated |
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Matrix>> |
angleMap |
protected boolean |
distanceCalculated |
protected java.util.List<java.lang.String> |
distanceFields |
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Double>> |
distanceMap |
hierarchicalStructure, matricesZ, randomEffectsSpecifications
dataSet, isInterceptModel, matrixX, vectorY
Constructor and Description |
---|
GenericHierarchicalSpatialDataStructure(DataSet dataSet)
General constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Matrix>> |
getAngleBetweenObservations()
This method returns the angle map between the observations.
|
protected Matrix |
getAnglesBetweenObservations(int indexA,
int indexB) |
protected double |
getDistanceBetweenObservations(int indexA,
int indexB)
This method computes the Euclidian distance between two observations regardless of the dimensions.
|
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Double>> |
getDistancesBetweenObservations()
This method returns the distance map between the observations.
|
void |
setDistanceFields(java.util.List<java.lang.String> fields)
This method sets the distance field names.
|
constructMatrices, getHierarchicalStructure, getHierarchicalStructureLevel, getMatrixZ, isThereAnyHierarchicalStructure, recordRandomEffects, setHierarchicalStructureLevel, setRandomEffectStructure
computeDummyVariables, getDataSet, getMatrixX, getNumberOfObservations, getVectorY, isInterceptModel, setInterceptModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchicalStructure, getHierarchicalStructureLevel, getMatrixZ, isThereAnyHierarchicalStructure, setHierarchicalStructureLevel
constructMatrices, getDataSet, getMatrixX, getNumberOfObservations, getVectorY, isInterceptModel, setInterceptModel
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Double>> distanceMap
protected java.util.List<java.lang.String> distanceFields
protected boolean distanceCalculated
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Matrix>> angleMap
protected boolean angleCalculated
public GenericHierarchicalSpatialDataStructure(DataSet dataSet)
dataSet
- a DataSet instancepublic void setDistanceFields(java.util.List<java.lang.String> fields)
HierarchicalSpatialDataStructure
setDistanceFields
in interface HierarchicalSpatialDataStructure
fields
- a List that contains the names of the fields that serve to compute the Euclidian distancepublic java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Double>> getDistancesBetweenObservations()
HierarchicalSpatialDataStructure
getDistancesBetweenObservations
in interface HierarchicalSpatialDataStructure
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Matrix>> getAngleBetweenObservations()
HierarchicalSpatialDataStructure
getAngleBetweenObservations
in interface HierarchicalSpatialDataStructure
protected Matrix getAnglesBetweenObservations(int indexA, int indexB)
protected double getDistanceBetweenObservations(int indexA, int indexB)
indexA
- the index of the first observationindexB
- the index of the second observation