Package sc.fiji.snt.tracing.cost
Class OneMinusErfFloor
java.lang.Object
sc.fiji.snt.tracing.cost.OneMinusErf
sc.fiji.snt.tracing.cost.OneMinusErfFloor
- All Implemented Interfaces:
Cost
OneMinusErf with a small constant added to every step cost. The
floor keeps path length in the objective when the erfc term vanishes on
bright voxels, which discourages lateral jitter inside neurites and
zig-zagging across dim gaps.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault additive floor per unit step -
Constructor Summary
ConstructorsConstructorDescriptionOneMinusErfFloor(double max, double average, double standardDeviation) OneMinusErfFloor(double max, double average, double standardDeviation, double floor) -
Method Summary
Modifier and TypeMethodDescriptiondoublecostMovingTo(double valueAtNewPoint) doublegetFloor()doubleMethods inherited from class sc.fiji.snt.tracing.cost.OneMinusErf
getZFudge, setZFudge, zScore
-
Field Details
-
DEFAULT_FLOOR
public static final double DEFAULT_FLOORDefault additive floor per unit step- See Also:
-
-
Constructor Details
-
OneMinusErfFloor
public OneMinusErfFloor(double max, double average, double standardDeviation) -
OneMinusErfFloor
public OneMinusErfFloor(double max, double average, double standardDeviation, double floor)
-
-
Method Details
-
costMovingTo
public double costMovingTo(double valueAtNewPoint) - Specified by:
costMovingToin interfaceCost- Overrides:
costMovingToin classOneMinusErf
-
minStepCost
public double minStepCost()- Specified by:
minStepCostin interfaceCost- Overrides:
minStepCostin classOneMinusErf
-
getFloor
public double getFloor()
-