|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.visualization.comparison.SOMComparison
public class SOMComparison
Field Summary | |
---|---|
private boolean |
absolute
|
private int |
clusterNo
|
private LabelCoordinates[] |
coords1
|
private LabelCoordinates[] |
coords2
|
private double[][] |
dist1
|
private double[][] |
dist2
|
private GrowingSOM |
gsom1
|
private GrowingSOM |
gsom2
|
private String[] |
labelList1
|
private String[] |
labelList2
|
int |
MAXCLUSTERNO
|
private int |
maxCount
|
private double |
maxDistance
|
private int |
minAbsoluteCount
|
private boolean |
multiMatch
|
private int |
outlierCountThreshold
|
private double |
outlierPercentThreshold
|
private double |
sourceThreshold
|
private int |
stableCountThreshold
|
private double |
stablePercentThreshold
|
private double |
targetThreshold
|
Constructor Summary | |
---|---|
SOMComparison()
|
Method Summary | |
---|---|
static int[][] |
calculateClusterAssignment(GrowingSOM gsom,
int level)
Assigns each unit in the grid a number for the cluster it belongs to |
static double[][] |
calculateClusterDistances(int[][] clusterAssig,
int clusterNo)
|
ArrayList<Shift> |
calculateClusterShifts(MapPNode map1,
MapPNode map2)
|
void |
calculateMatrices()
|
ArrayList<Shift> |
calculateShifts(boolean cumulative)
|
static double[][] |
calculcateIntraSOMClusterDistanceMatrix(LabelCoordinates[] coords,
int[][] secSOMClusterAssignment,
int clusterNo,
double[][] distances)
Calculate the cluster distance matrix for all mapped vectors from the information where the inputs are mapped |
static double[][] |
calculcateIntraSOMDistanceMatrix(LabelCoordinates[] coords)
Calculate the distance matrix for all mapped vectors from the information where the inputs are mapped |
int[] |
clusterEquivalent(int[][] assignment1,
int[][] assignment2,
LabelCoordinates[] coords1,
LabelCoordinates[] coords2,
int numberOfClusters,
double[] percentages)
|
private LabelCoordinates |
getClusterMeanPoint(int[][] assignment,
int y,
int x,
GrowingSOM gsom)
Try to find a mean-point for a cluster |
int |
getClusterNo()
|
static LabelCoordinates[] |
getLabelCoordinates(GrowingSOM gsom)
|
int |
getMaxCount()
Compare two SOMs according to where input vectors come to lie on the map |
double |
getMaxDistance()
|
int |
getMinAbsoluteCount()
|
int |
getOutlierCountThreshold()
|
double |
getOutlierPercentThreshold()
|
double |
getSourceThreshold()
|
int |
getStableCountThreshold()
|
double |
getStablePercentThreshold()
|
double |
gettargetThreshold()
|
double |
getTargetThreshold()
|
private int |
highestCount(int[] neighbourCount)
|
boolean |
isAbsolute()
|
boolean |
isMultiMatch()
|
static GrowingSOM |
loadGSOM(String setname)
|
void |
loadGSOMs(GrowingSOM gsom,
String prefix)
|
void |
loadGSOMsFromPrefix(String prefix1,
String prefix2)
|
static void |
printInputDifferenceErrorMesage(String[] labelList,
String[] labelList2)
|
private ArrayList<Shift> |
purgeShifts(ArrayList<Shift> allshifts)
|
void |
setAbsolute(boolean absolute)
|
void |
setClusterNo(int clusterNo)
|
void |
setMinAbsoluteCount(int minAbsoluteCount)
|
void |
setMultiMatch(boolean multiMatch)
|
void |
setOutlierCountThreshold(int outlierCountThreshold)
|
void |
setOutlierPercentThreshold(double outlierPercentThreshold)
|
void |
setSourceThreshold(double sourceThreshold)
|
void |
setStableCountThreshold(int stableCountThreshold)
|
void |
setStablePercentThreshold(double stablePercentThreshold)
|
void |
settargetThreshold(double targetThreshold)
|
void |
setTargetThreshold(double targetThreshold)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private GrowingSOM gsom1
private GrowingSOM gsom2
private LabelCoordinates[] coords1
private LabelCoordinates[] coords2
private String[] labelList1
private String[] labelList2
private double[][] dist1
private double[][] dist2
private double maxDistance
private int maxCount
private double sourceThreshold
private double targetThreshold
private int outlierCountThreshold
private int stableCountThreshold
private double outlierPercentThreshold
private double stablePercentThreshold
private int minAbsoluteCount
private boolean absolute
private boolean multiMatch
private int clusterNo
public final int MAXCLUSTERNO
Constructor Detail |
---|
public SOMComparison()
Method Detail |
---|
public static LabelCoordinates[] getLabelCoordinates(GrowingSOM gsom)
public static GrowingSOM loadGSOM(String setname)
public static double[][] calculcateIntraSOMDistanceMatrix(LabelCoordinates[] coords) throws MetricException
MetricException
public static double[][] calculateClusterDistances(int[][] clusterAssig, int clusterNo)
public static int[][] calculateClusterAssignment(GrowingSOM gsom, int level) throws LayerAccessException, ClusteringAbortedException
LayerAccessException
ClusteringAbortedException
public int[] clusterEquivalent(int[][] assignment1, int[][] assignment2, LabelCoordinates[] coords1, LabelCoordinates[] coords2, int numberOfClusters, double[] percentages)
public static double[][] calculcateIntraSOMClusterDistanceMatrix(LabelCoordinates[] coords, int[][] secSOMClusterAssignment, int clusterNo, double[][] distances)
private int highestCount(int[] neighbourCount)
public ArrayList<Shift> calculateShifts(boolean cumulative) throws SOMToolboxException
SOMToolboxException
private ArrayList<Shift> purgeShifts(ArrayList<Shift> allshifts)
public ArrayList<Shift> calculateClusterShifts(MapPNode map1, MapPNode map2) throws ClusteringAbortedException
ClusteringAbortedException
private LabelCoordinates getClusterMeanPoint(int[][] assignment, int y, int x, GrowingSOM gsom)
public void loadGSOMsFromPrefix(String prefix1, String prefix2) throws SOMToolboxException
SOMToolboxException
public void loadGSOMs(GrowingSOM gsom, String prefix) throws SOMToolboxException
SOMToolboxException
public void calculateMatrices()
public int getMaxCount()
public double getMaxDistance()
public double gettargetThreshold()
public void settargetThreshold(double targetThreshold)
public int getOutlierCountThreshold()
public int getStableCountThreshold()
public double getTargetThreshold()
public void setOutlierCountThreshold(int outlierCountThreshold)
public void setStableCountThreshold(int stableCountThreshold)
public void setTargetThreshold(double targetThreshold)
public int getClusterNo()
public void setClusterNo(int clusterNo)
public double getSourceThreshold()
public void setSourceThreshold(double sourceThreshold)
public double getOutlierPercentThreshold()
public void setOutlierPercentThreshold(double outlierPercentThreshold)
public double getStablePercentThreshold()
public void setStablePercentThreshold(double stablePercentThreshold)
public boolean isAbsolute()
public void setAbsolute(boolean absolute)
public int getMinAbsoluteCount()
public void setMinAbsoluteCount(int minAbsoluteCount)
public static void printInputDifferenceErrorMesage(String[] labelList, String[] labelList2)
public void setMultiMatch(boolean multiMatch)
public boolean isMultiMatch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |