public class LinearThresholdModel extends WeightedThresholdModel implements ThresholdingAlgorithm
Where x is k*sum(edge_weight*neuron_value) for all input edges. Differential is, of course, k
k| Constructor and Description |
|---|
LinearThresholdModel(double p_k)
Creates a new thresholding function with the given 'harshness'.
|
| Modifier and Type | Method and Description |
|---|---|
double |
differentialValue(Edge[] edges)
Returns the differential of the thresholding function.
|
boolean |
validateInput(double input)
Validates input against the applicable range for this thresholding algorithm.
|
double |
value(Edge[] edges)
Calculates Neuron value from all Edges and their source Neurons.
|
getK, setKpublic LinearThresholdModel(double p_k)
p_k - the steepness of the dropoffpublic double value(Edge[] edges)
value in interface ThresholdingAlgorithmedges - All of the edges leading into this neuronpublic boolean validateInput(double input)
validateInput in interface ThresholdingAlgorithminput - The value to checkpublic double differentialValue(Edge[] edges)
differentialValue in interface ThresholdingAlgorithmedges - The edges that comprise the links this neuron has.