assertEquals( 5, hist.firstDataValue().get() );
assertEquals( 256, hist.getBinCount() );
assertEquals( 11, hist.totalCount() );
assertEquals( 1, hist.frequency( new UnsignedByteType( 3 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 5 ) ) );
assertEquals( 1, hist.frequency( new UnsignedByteType( 7 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 9 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 10 ) ) );
assertEquals( 0, hist.lowerTailCount() );
assertEquals( 0, hist.upperTailCount() );
binMapper = new Integer1dBinMapper< UnsignedByteType >( 4, 8, true );
hist = new Histogram1d< UnsignedByteType >( data, binMapper );
assertEquals( 8, hist.getBinCount() );
assertEquals( 11, hist.distributionCount() );
assertEquals( 1, hist.frequency( new UnsignedByteType( 3 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 5 ) ) );
assertEquals( 1, hist.frequency( new UnsignedByteType( 7 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 9 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 10 ) ) );
assertEquals( 1, hist.lowerTailCount() );
assertEquals( 3, hist.upperTailCount() );
binMapper = new Integer1dBinMapper< UnsignedByteType >( 5, 5, false );
hist = new Histogram1d< UnsignedByteType >( data, binMapper );
assertEquals( 5, hist.getBinCount() );
assertEquals( 7, hist.distributionCount() );
assertEquals( 0, hist.frequency( new UnsignedByteType( 3 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 5 ) ) );
assertEquals( 1, hist.frequency( new UnsignedByteType( 7 ) ) );
assertEquals( 3, hist.frequency( new UnsignedByteType( 9 ) ) );
assertEquals( 0, hist.frequency( new UnsignedByteType( 10 ) ) );
assertEquals( 0, hist.lowerTailCount() );
assertEquals( 0, hist.upperTailCount() );
}