Search in sources :

Example 1 with MultiTimeline

use of automenta.vivisect.timeline.MultiTimeline in project opennars by opennars.

the class BagFairness method main.

public static void main(String[] args) {
    Parameters.DEBUG = true;
    int inputs = 100;
    int maxConcepts = 1000;
    float inputRate = 0.2f;
    int displayedIterations = 600;
    int numIterations = 600;
    float minPri = 0.1f;
    float maxPri = 1.0f;
    new NWindow("_", new MultiTimeline(1, 1, 1) {

        @Override
        public Chart[] getCharts(int experiment) {
            final NAR n = new NAR();
            ArrayList<Chart> ch = new BagFairness(n, "nal/Examples/Example-MultiStep-edited.txt", maxConcepts, /* concepts */
            numIterations - displayedIterations, numIterations).charts;
            return ch.toArray(new Chart[ch.size()]);
        }
    }).show(1200, 900, true);
}
Also used : NWindow(automenta.vivisect.swing.NWindow) MultiTimeline(automenta.vivisect.timeline.MultiTimeline) StackedPercentageChart(automenta.vivisect.timeline.StackedPercentageChart) LineChart(automenta.vivisect.timeline.LineChart) Chart(automenta.vivisect.timeline.Chart) NAR(nars.main.NAR)

Aggregations

NWindow (automenta.vivisect.swing.NWindow)1 Chart (automenta.vivisect.timeline.Chart)1 LineChart (automenta.vivisect.timeline.LineChart)1 MultiTimeline (automenta.vivisect.timeline.MultiTimeline)1 StackedPercentageChart (automenta.vivisect.timeline.StackedPercentageChart)1 NAR (nars.main.NAR)1