|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| EightBitQuantizer () | |
| void | initialize () |
| void | add (float key) |
| void | finalize () |
| final float | read (ByteBuffer stream, int position) |
| final void | write (ByteBuffer stream, float value) |
| String | getKey () |
| void | writeState (DataOutputStream out) throws IOException |
| void | readState (DataInputStream in) throws IOException |
| final int | size () |
Static Public Member Functions | |
| static void | main (String[] args) throws IOException |
Private Attributes | |
| float[] | buckets |
| transient TreeMap< Float, Integer > | histogram |
| transient int | total |
| void joshua.util.quantization.EightBitQuantizer.add | ( | float | key | ) |
Implements joshua.util.quantization.Quantizer.
| static void joshua.util.quantization.EightBitQuantizer.main | ( | String[] | args | ) | throws IOException [static] |
| final float joshua.util.quantization.EightBitQuantizer.read | ( | ByteBuffer | stream, |
| int | position | ||
| ) |
| void joshua.util.quantization.EightBitQuantizer.readState | ( | DataInputStream | in | ) | throws IOException |
Implements joshua.util.quantization.Quantizer.
| final int joshua.util.quantization.EightBitQuantizer.size | ( | ) |
| final void joshua.util.quantization.EightBitQuantizer.write | ( | ByteBuffer | stream, |
| float | value | ||
| ) |
| void joshua.util.quantization.EightBitQuantizer.writeState | ( | DataOutputStream | out | ) | throws IOException |
float [] joshua.util.quantization.EightBitQuantizer.buckets [private] |
transient TreeMap<Float, Integer> joshua.util.quantization.EightBitQuantizer.histogram [private] |
transient int joshua.util.quantization.EightBitQuantizer.total [private] |