use of org.apache.commons.rng.UniformRandomProvider in project GDSC-SMLM by aherbert.
the class SumFilterTest method intRollingBlockSum3x3AndRollingBlockSumNxNReturnSameResult.
@SeededTest
void intRollingBlockSum3x3AndRollingBlockSumNxNReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
intCompareRollingBlockSum3x3AndRollingBlockSumNxN(rg, filter, width, height);
}
}
}
use of org.apache.commons.rng.UniformRandomProvider in project GDSC-SMLM by aherbert.
the class SumFilterTest method floatBlockSum3x3InternalAndRollingBlockSumNxNInternalReturnSameResult.
@SeededTest
public void floatBlockSum3x3InternalAndRollingBlockSumNxNInternalReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
floatCompareBlockSum3x3InternalAndRollingBlockSumNxNInternal(rg, filter, width, height);
}
}
}
use of org.apache.commons.rng.UniformRandomProvider in project GDSC-SMLM by aherbert.
the class SumFilterTest method intRollingBlockSumNxNInternalAndRollingBlockSumNxNInternalTransposedReturnSameResult.
@SeededTest
void intRollingBlockSumNxNInternalAndRollingBlockSumNxNInternalTransposedReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
for (final int boxSize : boxSizes) {
intCompareRollingBlockSumNxNInternalAndRollingBlockSumNxNInternalTransposed(rg, filter, width, height, boxSize);
}
}
}
}
use of org.apache.commons.rng.UniformRandomProvider in project GDSC-SMLM by aherbert.
the class SumFilterTest method intBlockSum3x3AndBlockSumNxNReturnSameResult.
@SeededTest
void intBlockSum3x3AndBlockSumNxNReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
intCompareBlockSum3x3AndBlockSumNxN(rg, filter, width, height);
}
}
}
use of org.apache.commons.rng.UniformRandomProvider in project GDSC-SMLM by aherbert.
the class SumFilterTest method floatBlockSumNxNAndStripedBlockSumNxNReturnSameResult.
@SeededTest
void floatBlockSumNxNAndStripedBlockSumNxNReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
for (final int boxSize : boxSizes) {
floatCompareBlockSumNxNAndStripedBlockSumNxN(rg, filter, width, height, boxSize);
}
}
}
}
Aggregations