use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testMax.
@Test
public void testMax() {
final LongType in = new LongType(LARGE_NUM);
final LongType out = (LongType) ops.run(MaxConstant.class, in.createVariable(), in, LARGE_NUM + 1.0);
assertEquals(out.get(), LARGE_NUM - 1);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testCosh.
@Test
public void testCosh() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Cosh.class, out, in);
assertEquals(out.get(), Math.cosh(1234567890), 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testNearestInt.
@Test
public void testNearestInt() {
final LongType in = new LongType(LARGE_NUM);
final LongType out = (LongType) ops.run(NearestInt.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 testTan.
@Test
public void testTan() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Tan.class, out, in);
assertEquals(out.get(), Math.tan(1234567890), 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testArccot.
@Test
public void testArccot() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Arccot.class, out, in);
assertEquals(out.get(), Math.atan(1.0 / 1234567890), 0.0);
}
Aggregations