Search in sources :

Example 6 with Longerval

use of jcog.math.Longerval in project narchy by automenta.

the class RevectionTest method assertTimeFusion.

static void assertTimeFusion(long start, long end, float factor, Longerval... ii) {
    EviDensity a = new EviDensity();
    for (Longerval i : ii) {
        a.add(i.a, i.b, 1);
    }
    assertEquals(start, a.unionStart);
    assertEquals(end, a.unionEnd);
    assertEquals(factor, a.factor(), 0.001f);
}
Also used : Longerval(jcog.math.Longerval)

Aggregations

Longerval (jcog.math.Longerval)6 Test (org.junit.jupiter.api.Test)3 EviDensity (nars.task.EviDensity)1