use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testSincPi.
@Test
public void testSincPi() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(SincPi.class, out, in);
final double PI = Math.PI;
assertEquals(out.get(), Math.sin(PI * 1234567890) / (PI * 1234567890), 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testCsch.
@Test
public void testCsch() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Csch.class, out, in);
assertEquals(out.get(), 1 / Math.sinh(1234567890), 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testTanh.
@Test
public void testTanh() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Tanh.class, out, in);
assertEquals(out.get(), Math.tanh(1234567890), 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testSinc.
@Test
public void testSinc() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Sinc.class, out, in);
assertEquals(out.get(), Math.sin(1234567890) / 1234567890, 0.0);
}
use of net.imglib2.type.numeric.integer.LongType in project imagej-ops by imagej.
the class UnaryRealTypeMathTest method testExp.
@Test
public void testExp() {
final LongType in = new LongType(1234567890);
final DoubleType out = new DoubleType();
ops.run(Exp.class, out, in);
assertEquals(out.get(), Math.exp(1234567890), 0.0);
}
Aggregations