toggle menu
moonlight
1.0-SNAPSHOT
jvm
switch theme
search in API
engine
/
io.github.moonlightsuite.moonlight.domain
/
PairDistance
Pair
Distance
public
class
PairDistance
<
D1
,
D2
>
implements
DistanceDomain
<
M
>
Members
Constructors
Pair
Distance
Link copied to clipboard
public
void
PairDistance
(
DistanceDomain
<
D1
>
firstDomain
,
DistanceDomain
<
D2
>
secondDomain
)
Functions
equal
To
Link copied to clipboard
public
boolean
equalTo
(
Pair
<
D1
,
D2
>
x
,
Pair
<
D1
,
D2
>
y
)
Tells whether the first distance is equivalent to the second
infinity
Link copied to clipboard
public
Pair
<
D1
,
D2
>
infinity
(
)
Maximal allowed distance
less
Link copied to clipboard
public
boolean
less
(
Pair
<
D1
,
D2
>
x
,
Pair
<
D1
,
D2
>
y
)
Tells whether the first distance is smaller than the second
less
Or
Equal
Link copied to clipboard
public
boolean
lessOrEqual
(
Pair
<
D1
,
D2
>
x
,
Pair
<
D1
,
D2
>
y
)
Tells whether the first distance is smaller or equal to the second.
multiply
Link copied to clipboard
public
M
multiply
(
M
x
,
int factor
)
Method to combine the metric `x`, `factor` times
sum
Link copied to clipboard
public
Pair
<
D1
,
D2
>
sum
(
Pair
<
D1
,
D2
>
x
,
Pair
<
D1
,
D2
>
y
)
Method to combine two distances
zero
Link copied to clipboard
public
Pair
<
D1
,
D2
>
zero
(
)
Minimal allowed distance