public class MonteCarlo
extends java.lang.Object
Constructor and Description |
---|
MonteCarlo() |
Modifier and Type | Method and Description |
---|---|
static void |
findGeneralOctonionRotation()
A most general quaternion rotation is given by q --> r*q*r-1.
|
static java.util.HashSet<BinaryProductStructure> |
getIdemotents(java.lang.Class class_,
int nonzero_elements)
Idempotents (modulo '-1') are determined.
|
static java.util.HashSet<java.lang.String> |
getNonassociativeSpacetimeQuadruples() |
static java.util.HashSet<java.lang.String> |
getNonassociativeSpacetimeTriples() |
java.util.HashSet<java.lang.String> |
getNucleus()
Every component is randomly set to -1,0 or 1.
|
static int |
getRandomInteger(int from,
int to) |
static int |
getRandomInteger(int from,
int to,
java.util.HashSet<java.lang.String> excluded_elements) |
static java.util.HashSet<java.lang.String> |
getTetrads(int n)
For a given number of elements all possible tetrads (4-sets) are generated.
|
static java.util.HashSet<java.lang.String> |
getTriads(int n)
For a given number of elements all possible triads are generated.
|
static java.util.HashSet<java.lang.String> |
getZeroDivisors(int nonzero_components) |
static void |
printQuintIdentities() |
static void |
setNumberOfIterations(int n)
Any Monte Carlo simulation is carried out in a loop.
|
static void |
testGeneratePossibleHadamardTables()
Given a n x n -matrix with n mod 4 = 0, how many different Hadamard matrices can one
construct ?
|
public static void setNumberOfIterations(int n)
n
- Number of times to cycle through the loop.public static void testGeneratePossibleHadamardTables() throws java.lang.Exception
java.lang.Exception
public static void findGeneralOctonionRotation() throws java.lang.Exception
java.lang.Exception
public java.util.HashSet<java.lang.String> getNucleus()
public static java.util.HashSet<BinaryProductStructure> getIdemotents(java.lang.Class class_, int nonzero_elements) throws java.lang.Exception
nonzero_elements
- Number of components set to +1 or -1 (randomly).java.lang.Exception
public static java.util.HashSet<java.lang.String> getTriads(int n)
n
- Number of possible elements in a triad.public static java.util.HashSet<java.lang.String> getTetrads(int n)
n
- Number of possible elements in a tetrad.public static java.util.HashSet<java.lang.String> getNonassociativeSpacetimeTriples()
public static java.util.HashSet<java.lang.String> getNonassociativeSpacetimeQuadruples()
public static void printQuintIdentities() throws java.lang.Exception
java.lang.Exception
public static int getRandomInteger(int from, int to, java.util.HashSet<java.lang.String> excluded_elements)
public static int getRandomInteger(int from, int to)
public static java.util.HashSet<java.lang.String> getZeroDivisors(int nonzero_components) throws java.lang.Exception
nonzero_elements
- Number of components to be randomly set to "-1" or "+1" for both
numbers to be multiplied.java.lang.Exception