|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blackbox.util.IntervalUtil
public class IntervalUtil
Relation spaciales entre paires d'intervalles. Nous definissons ici cinq types de relations differentes : - Paire d'intervalles chevauchant - Paire d'intervalle inclus - Paire d'intervalle continus - Paire d'intervalle contigus - Paire d'intervalle egales Et quelques operateur de comparaisons quantitatif - plus grand que - distance
Constructor Summary | |
---|---|
IntervalUtil()
|
Method Summary | |
---|---|
static Interval |
beforeXY(Interval A,
Interval B)
Retourne l'intervalle de plus petite coordonnee de debut. |
static Interval |
bigerXY(Interval A,
Interval B)
Retourne le plus grand des deux intervalles. |
static boolean |
continuousXY(Interval A,
Interval B)
A et B sont continues ssi A touche B ou si B touche A |
static int |
covmaxXY(Interval A,
Interval B)
Retourne le % de couverture de A sur B ssi A > B |
static int |
covminXY(Interval A,
Interval B)
Retourne le % de couverture de A sur B ssi A < B |
static int |
distance(Interval A,
Interval B)
Retourne la distance qui separe ces deux intervalles. |
static boolean |
equalsXY(Interval A,
Interval B)
|
static boolean |
includeXY(Interval A,
Interval B)
|
static boolean |
laxIncludeXY(Interval A,
Interval B)
|
static boolean |
meetsXY(Interval A,
Interval B)
|
static boolean |
overlapXY(Interval A,
Interval B)
|
static Interval |
reScale(float scale,
Interval i)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalUtil()
Method Detail |
---|
public static boolean meetsXY(Interval A, Interval B)
public static boolean overlapXY(Interval A, Interval B)
public static boolean includeXY(Interval A, Interval B)
public static boolean laxIncludeXY(Interval A, Interval B)
public static boolean continuousXY(Interval A, Interval B)
A
- B
-
public static boolean equalsXY(Interval A, Interval B)
public static int covminXY(Interval A, Interval B)
A
- un intervalB
- un interval
public static int covmaxXY(Interval A, Interval B)
A
- un intervalB
- un interval
public static int distance(Interval A, Interval B)
A
- le premier intervallesB
- le second intervalles
public static Interval beforeXY(Interval A, Interval B)
A
- le premier int.B
- le deuxieme int.
public static Interval bigerXY(Interval A, Interval B)
A
- le premier int.B
- le deuxieme int.
public static Interval reScale(float scale, Interval i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |