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, randomEffectsSpecificationsdataSet, 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, setRandomEffectStructurecomputeDummyVariables, getDataSet, getMatrixX, getNumberOfObservations, getVectorY, isInterceptModel, setInterceptModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHierarchicalStructure, getHierarchicalStructureLevel, getMatrixZ, isThereAnyHierarchicalStructure, setHierarchicalStructureLevelconstructMatrices, getDataSet, getMatrixX, getNumberOfObservations, getVectorY, isInterceptModel, setInterceptModelprotected 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)
HierarchicalSpatialDataStructuresetDistanceFields in interface HierarchicalSpatialDataStructurefields - 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()
HierarchicalSpatialDataStructuregetDistancesBetweenObservations in interface HierarchicalSpatialDataStructurepublic java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Matrix>> getAngleBetweenObservations()
HierarchicalSpatialDataStructuregetAngleBetweenObservations in interface HierarchicalSpatialDataStructureprotected 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