public class SymmetricShortDistanceMatrix extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_VALUE |
| Constructor and Description |
|---|
SymmetricShortDistanceMatrix(int size)
Creates a new instance of SymmetricShortDistancaMatrix
Defines a new Symmetric matrix, with a predefined size
Initially all values will be Short.MAX_Value (65535)
All data is stored in memory efficient one dimensional array, which costs size * (size + 1) bytes
|
SymmetricShortDistanceMatrix(int size,
boolean setMaxDistance) |
| Modifier and Type | Method and Description |
|---|---|
int |
get(int x,
int y) |
void |
getAllPairsShortestPath() |
double |
getCorrelationFromDistance(int distance) |
int |
getDistance(double pValue) |
int |
getDistanceFromCorrelation(double correlation)
The distance measure in short ranges from 0 to 65.000.
|
double |
getPValue(int distance) |
Vector |
getShortestPath(int x,
int y) |
void |
load(File fileName) |
int |
maxValue() |
void |
save(File fileName) |
void |
set(int x,
int y,
int value) |
void |
setAllElements(int value) |
int |
size() |
public static final int MAX_VALUE
public SymmetricShortDistanceMatrix(int size)
public SymmetricShortDistanceMatrix(int size,
boolean setMaxDistance)
public void setAllElements(int value)
public void set(int x,
int y,
int value)
public int get(int x,
int y)
public int size()
public int maxValue()
public void getAllPairsShortestPath()
public Vector getShortestPath(int x, int y)
public int getDistance(double pValue)
public double getPValue(int distance)
public int getDistanceFromCorrelation(double correlation)
public double getCorrelationFromDistance(int distance)
public void save(File fileName)
public void load(File fileName)
Copyright © 2015. All Rights Reserved.