QuasiRandom
Class Encode

java.lang.Object
  extended byQuasiRandom.Encode

public class Encode
extends java.lang.Object

Program decodes the row encoded generator matrices from the NX-sequence site into binary form, then reencodes the columns for use with the Gray code counter in NX-point generation (bottom up encoding of the columns).


Field Summary
static int[][][] gMR
          gMR.................generator matrix rows.
 
Constructor Summary
Encode()
           
 
Method Summary
static void decode(int dim, java.io.FileWriter fout)
          Decodes all matrix C(j) from the matrix family for dimension dim from the row encoded in the array gMR and then reencodes the columns for use with the Gray counter point generation algorithm (bottom up encoding).
static void decode(int dim, int j, java.io.FileWriter fout)
          Decodes the matrix C(j) from the matrix family for dimension dim from the row encoded from in the array gMR and then reencodes the columns for use with the Gray counter point generation algorithm (bottom up encoding).
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gMR

public static final int[][][] gMR
gMR.................generator matrix rows. gMR[j][k] is the kth row of the generator matrix C(j) encoded as a decimal integer n by viewing the the sequence of zeros and ones in the row r_k=row_k(C(j)) as the digits of n in base 2 with the most significant digit being the first component of the row vector r_k. This is the download from the NX sequences site.

Constructor Detail

Encode

public Encode()
Method Detail

decode

public static void decode(int dim,
                          int j,
                          java.io.FileWriter fout)
                   throws java.io.IOException
Decodes the matrix C(j) from the matrix family for dimension dim from the row encoded from in the array gMR and then reencodes the columns for use with the Gray counter point generation algorithm (bottom up encoding). The encoded values are written to a file output stream.

Throws:
java.io.IOException

decode

public static void decode(int dim,
                          java.io.FileWriter fout)
                   throws java.io.IOException
Decodes all matrix C(j) from the matrix family for dimension dim from the row encoded in the array gMR and then reencodes the columns for use with the Gray counter point generation algorithm (bottom up encoding). The encoded values are written to a file output stream.

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException