use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testCeil.
@Test
public void testCeil() {
final LongType in = new LongType(LARGE_NUM);
final LongType out = (LongType) ops.run(Ceil.class, in.createVariable(), in);
assertEquals(out.get(), LARGE_NUM - 1);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testNegate.
@Test
public void testNegate() {
final LongType in = new LongType(-LARGE_NUM);
final LongType out = (LongType) ops.run(Negate.class, in.createVariable(), in);
assertEquals(out.get(), LARGE_NUM - 1);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testStep.
@Test
public void testStep() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Step.class, out, in);
assertEquals(out.get(), 1.0, 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testLog10.
@Test
public void testLog10() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Log10.class, out, in);
assertEquals(out.get(), Math.log10(1234567890), 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testUlp.
@Test
public void testUlp() {
final LongType in = new LongType(LARGE_NUM);
final DoubleType out = new DoubleType();
ops.run(Ulp.class, out, in);
assertEquals(out.get(), 2.0, 0.0);
}
Aggregations