Package net.sf.cram.stats.CompressionHeaderFactory

Examples of net.sf.cram.stats.CompressionHeaderFactory.HuffmanParamsCalculator.calculate()


      cal.add(ReadTag.nameType3BytesToInt("OC", 'Z'));
      cal.add(ReadTag.nameType3BytesToInt("BQ", 'Z'));
      cal.add(ReadTag.nameType3BytesToInt("AM", 'c'));
    }

    cal.calculate();

    CanonicalHuffmanIntegerCodec c = new CanonicalHuffmanIntegerCodec(
        cal.values(), cal.bitLens());
    long time6 = System.nanoTime() ;
View Full Code Here


      names[i] = iterator.next().getReadName() ;
      c.add(names[i].length());
    }
    iterator.close();
    r.close();
    c.calculate();

    int[] values = c.values();
    int[] lens = c.bitLens();
    System.out.println(Arrays.toString(values));
    System.out.println(Arrays.toString(lens));
View Full Code Here

    long time5 = System.nanoTime();
    CompressionHeaderFactory.HuffmanParamsCalculator cal = new HuffmanParamsCalculator();
    for (byte i = 33; i < 33 + 15; i++)
      cal.add(i);
    cal.calculate();

    // CanonicalHuffmanByteCodec helper = new CanonicalHuffmanByteCodec(
    // cal.valuesAsBytes(), cal.bitLens());
    HelperByte helper = new HelperByte(cal.valuesAsBytes(), cal.bitLens());
    long time6 = System.nanoTime();
View Full Code Here

    cal.add(ReadTag.nameType3BytesToInt("OP", 'i'), size);
    cal.add(ReadTag.nameType3BytesToInt("OC", 'Z'), size);
    cal.add(ReadTag.nameType3BytesToInt("BQ", 'Z'), size);
    cal.add(ReadTag.nameType3BytesToInt("AM", 'c'), size);

    cal.calculate();

    // CanonicalHuffmanIntegerCodec helper = new
    // CanonicalHuffmanIntegerCodec(
    // cal.values(), cal.bitLens());
    Helper helper = new Helper(cal.values(), cal.bitLens());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.