|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectikbs.classification.distance.TwoCaseDistance
public class TwoCaseDistance
Classe de calcul de distance entre 2 objets
| Field Summary | |
|---|---|
protected ValSchema |
base
|
protected int |
c1
|
protected int |
c2
|
protected float |
distance
|
static boolean |
PONDERE
|
| Constructor Summary | |
|---|---|
TwoCaseDistance(ValSchema base,
int c1,
int c2)
|
|
| Method Summary | |
|---|---|
float |
calculDistancePond()
|
int |
getC1()
|
int |
getC2()
|
float |
getDistance()
|
boolean |
greaterThan(Comparable c)
Implémente Comparable |
void |
initDistance()
Calcul et initialisation de la distance |
void |
initDistance(ComputeDistance cd)
Calcul et initialisation de la distance avec ComputeDistance |
java.lang.Object |
key()
Implémente Comparable; |
void |
setC1(int c1)
|
void |
setC2(int c2)
|
void |
setDistance(float distance)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean PONDERE
protected int c1
protected int c2
protected float distance
protected ValSchema base
| Constructor Detail |
|---|
public TwoCaseDistance(ValSchema base,
int c1,
int c2)
| Method Detail |
|---|
public float getDistance()
public float calculDistancePond()
public void setDistance(float distance)
public int getC1()
public void setC1(int c1)
public int getC2()
public void setC2(int c2)
public void initDistance()
public void initDistance(ComputeDistance cd)
public java.lang.Object key()
key in interface Comparablepublic boolean greaterThan(Comparable c)
greaterThan in interface Comparablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||