model.MARK_II.parameters.ResetModelParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WalnutiQ Show documentation
Show all versions of WalnutiQ Show documentation
A Java based Neuron Modeling framework
The newest version!
package model.MARK_II.parameters;
import model.MARK_II.region.Column;
import model.MARK_II.region.Segment;
import model.MARK_II.generalAlgorithm.SpatialPooler;
import model.MARK_II.region.Synapse;
/**
* @author Quinn Liu ([email protected])
* @version April 30, 2013
*/
public class ResetModelParameters {
public static void reset(double PERMANENCE_INCREASE,
double PERMANENCE_DECREASE, double MINIMAL_CONNECTED_PERMANENCE,
double INITIAL_PERMANENCE,
double PERCENT_ACTIVE_SYNAPSES_THRESHOLD,
double EXPONENTIAL_MOVING_AVERAGE_AlPHA,
double MINIMUM_COLUMN_FIRING_RATE) {
Synapse.PERMANENCE_INCREASE = PERMANENCE_INCREASE;
Synapse.PERMANENCE_DECREASE = PERMANENCE_DECREASE;
Synapse.MINIMAL_CONNECTED_PERMANENCE = MINIMAL_CONNECTED_PERMANENCE;
Synapse.INITIAL_PERMANENCE = INITIAL_PERMANENCE;
Segment.PERCENT_ACTIVE_SYNAPSES_THRESHOLD = PERCENT_ACTIVE_SYNAPSES_THRESHOLD;
Column.EXPONENTIAL_MOVING_AVERAGE_AlPHA = (float) EXPONENTIAL_MOVING_AVERAGE_AlPHA;
SpatialPooler.MINIMUM_COLUMN_FIRING_RATE = (float) MINIMUM_COLUMN_FIRING_RATE;
}
}