|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.graph.cost.CostFunctions
public final class CostFunctions
A collection of predefined cost filter implementations.
| Method Summary | ||
|---|---|---|
static
|
constant(double cost)
Cost function unconditionally returning the specified weight. |
|
static
|
one()
Cost function unconditionally returning the weight 1. |
|
static
|
zero()
Cost function unconditionally returning the weight 0. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <N,E extends Edge<N>> CostFunction<N,E> zero()
N - the node typeE - the edge type
public static <N,E extends Edge<N>> CostFunction<N,E> one()
N - the node typeE - the edge type
public static <N,E extends Edge<N>> CostFunction<N,E> constant(double cost)
N - the node typeE - the edge typecost - the constant cost to return for each edge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||