|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.alg.spath.DoubleValuedPathAlgebra
public class DoubleValuedPathAlgebra
A path algebra which works with subclasses of java.lang.Number and uses double values for the arithmetic
Constructor Summary | |
---|---|
DoubleValuedPathAlgebra()
constructor |
Method Summary | |
---|---|
Double |
add(Double pathLenOne,
Double pathLenTwo)
Add the length of to paths, yielding the length of the combined path |
Double |
emptyPathLen()
Return a value 'zero' which must be the neutral element of the operation max and is equal to the length of an empty path. |
Double |
infinitePathLen()
Return a value 'infinity' which must be the neutral element of the operation min. |
Double |
min(Double pathLenOne,
Double pathLenTwo)
Calculate the minimum distance of a node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleValuedPathAlgebra()
Method Detail |
---|
public Double add(Double pathLenOne, Double pathLenTwo)
PathAlgebra
add
in interface PathAlgebra<Double>
public Double min(Double pathLenOne, Double pathLenTwo)
PathAlgebra
min
in interface PathAlgebra<Double>
public Double infinitePathLen()
PathAlgebra
infinitePathLen
in interface PathAlgebra<Double>
public Double emptyPathLen()
PathAlgebra
emptyPathLen
in interface PathAlgebra<Double>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |