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

model.MARK_II.ProximalSegment Maven / Gradle / Ivy

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

/**
 * Input to ProximalSegment: activity of active Synapses connected to this Segment.
 *  
 * Output from ProximalSegment: whether or not this Segment is currently active.
 *
 * @author Quinn Liu ([email protected])
 * @version July 22, 2013
 */
public class ProximalSegment extends Segment {

    public ProximalSegment() {
        super();
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("\n====================================");
        stringBuilder.append("\n-------ProximalSegment Info---------");
        stringBuilder.append("\n                active state: ");
        stringBuilder.append(this.getActiveState());
        stringBuilder.append("\n       previous active state: ");
        stringBuilder.append("\n    number of total Synapses: ");
        stringBuilder.append(this.synapses.size());
        stringBuilder.append("\nminimum activation threshold: ");
        stringBuilder
                .append((int) (this.synapses.size() * PERCENT_ACTIVE_SYNAPSES_THRESHOLD));
        stringBuilder.append("\n   number of active Synapses: ");
        stringBuilder.append(this.getNumberOfActiveSynapses());
        stringBuilder.append("\n=====================================");
        String columnInformation = stringBuilder.toString();
        return columnInformation;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy