All Downloads are FREE. Search and download functionalities are using the official Maven repository.

model.MARK_II.Pooler Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package model.MARK_II;

/**
 * Abstract class extended by SpatialPooler.java and TemporalPooler.java classes.
 *
 * @author Quinn Liu ([email protected])
 * @version June 26, 2013
 */
public abstract class Pooler {
    protected Region region;
    private boolean learningState;

    public void changeRegion(Region newRegion) {
        if (newRegion == null) {
            throw new IllegalArgumentException(
                    "newRegion in Pooler class changeRegion method cannot be null");
        }
        this.learningState = false;
        this.region = newRegion;
    }

    public boolean getLearningState() {
        return this.learningState;
    }

    public void setLearningState(boolean learningState) {
        this.learningState = learningState;
    }

    public Region getRegion() {
        return this.region;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy