public class MedianDissimilarity extends LanceWilliamsDissimilarity
dm
Constructor and Description |
---|
MedianDissimilarity(DistanceMetric dm) |
MedianDissimilarity(MedianDissimilarity toCopy) |
Modifier and Type | Method and Description |
---|---|
protected double |
aConst(boolean iFlag,
int ni,
int nj,
int nk)
This method computes the value of the α variable.
|
protected double |
bConst(int ni,
int nj,
int nk)
This method computes the value of the β variable.
|
protected double |
cConst(int ni,
int nj,
int nk)
This method computes the value of the γ variable.
|
MedianDissimilarity |
clone() |
dissimilarity, dissimilarity, dissimilarity, dissimilarity, dissimilarity
distance
createDistanceMatrix, getDistance, setDistance
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance
public MedianDissimilarity(DistanceMetric dm)
public MedianDissimilarity(MedianDissimilarity toCopy)
protected double aConst(boolean iFlag, int ni, int nj, int nk)
LanceWilliamsDissimilarity
aConst
in class LanceWilliamsDissimilarity
iFlag
- true indicates that αi is the
value to compute, false indicated that αj
should be computed.ni
- the number of points that make up cluster inj
- the number of points that make up cluster jnk
- the number of points that make up cluster kprotected double bConst(int ni, int nj, int nk)
LanceWilliamsDissimilarity
bConst
in class LanceWilliamsDissimilarity
ni
- the number of points that make up cluster inj
- the number of points that make up cluster jnk
- the number of points that make up cluster kprotected double cConst(int ni, int nj, int nk)
LanceWilliamsDissimilarity
cConst
in class LanceWilliamsDissimilarity
ni
- the number of points that make up cluster inj
- the number of points that make up cluster jnk
- the number of points that make up cluster kpublic MedianDissimilarity clone()
clone
in interface ClusterDissimilarity
clone
in interface UpdatableClusterDissimilarity
clone
in class LanceWilliamsDissimilarity
Copyright © 2017. All rights reserved.