korat.utils.cv
Class AlgSimulator
java.lang.Object
korat.utils.cv.AlgSimulator
- Direct Known Subclasses:
- Cmp
public class AlgSimulator
- extends Object
Simulates algorithm that saves equidistant vectors
Method Summary |
static long[] |
checkExpectedMode(int size,
long candidates,
long expected)
|
static long[] |
checkWriteNumMode(int size,
long candidates)
|
static void |
main(String[] args)
args[0] - number candidates to store
args[1] - maximal number of candidates (obtained through exploration)
args[2] - if in Expected mode, number of expected candidates |
static void |
print(long[] buff,
int expectedSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlgSimulator
public AlgSimulator()
main
public static void main(String[] args)
- args[0] - number candidates to store
args[1] - maximal number of candidates (obtained through exploration)
args[2] - if in Expected mode, number of expected candidates
print
public static void print(long[] buff,
int expectedSize)
checkWriteNumMode
public static long[] checkWriteNumMode(int size,
long candidates)
checkExpectedMode
public static long[] checkExpectedMode(int size,
long candidates,
long expected)