Class RandomSequence
java.lang.Object
nom.tam.fits.compression.algorithm.quant.RandomSequence
A standard fixed random sequence to use for portable and reversible dither
implementations. This is a modified (improved) version of the random sequence
implementation in Appendix I of the FITS
4.0 standard, using integer arithmetics for better performance -- but
still providing the same sequence as the original algorithm.
- See Also:
-
QuantizeProcessor
-
Method Summary
-
Method Details
-
get
public static double get(int i) Returns the ith random value from the sequence -
length
public static int length()Returns the number of random values in the sequence.- Returns:
- The number of random values available from the fixed sequence.
-