|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.toolbox.jmathlib.matrix._private.Jampack.Rand
public class Rand
The rand suite generates random objects with elements distributed randomly on [0,1] or normally with mean zero and standard deviation one.
| Constructor Summary | |
|---|---|
Rand()
|
|
| Method Summary | |
|---|---|
static double |
nd()
Generates a normal random double. |
static double[] |
ndary(int n)
Generates a one-dimensional array of normal random doubles. |
static double[][] |
ndary(int m,
int n)
Generates a two-dimensional array of normal random doubles. |
static Z |
nz()
Generates a normal random complex number, i.e., a complex number whose real and imaginary parts are random. |
static Z1 |
nz1(int n)
Generates a normal random Z1. |
static Zmat |
nzmat(int m,
int n)
Generates a normal random Zmat. |
static void |
setSeed(long seed)
Sets the seed for the random number generator. |
static double |
ud()
Generates a random uniform double. |
static double[] |
udary(int n)
Generates a one-dimensional array of uniform random doubles. |
static double[][] |
udary(int m,
int n)
Generates a two-dimensional array of uniform random doubles. |
static Z |
uz()
Generates a uniform random complex number, i.e., a complex number whose real and imaginary parts are random. |
static Z1 |
uz1(int n)
Generates a uniform random Z1. |
static Zmat |
uzmat(int m,
int n)
Generates a uniform random Zmat. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rand()
| Method Detail |
|---|
public static void setSeed(long seed)
seed - The seedpublic static double ud()
public static double[] udary(int n)
n - The length of the array.
public static double[][] udary(int m,
int n)
m - The number of rows in the array.n - The number of columns in the array.
public static Z uz()
public static Z1 uz1(int n)
throws JampackException
n - The length of the Z1
JampackException - Passed from below.
public static Zmat uzmat(int m,
int n)
throws JampackException
m - The number of rows in the Zmatn - The number of columns in the Zmat
JampackException - Passed from below.public static double nd()
public static double[] ndary(int n)
n - The length of the array.
public static double[][] ndary(int m,
int n)
m - The number of rows in the array.n - The number of columns in the array.
public static Z nz()
public static Z1 nz1(int n)
throws JampackException
n - The length of the Z1
JampackException - Passed from below.
public static Zmat nzmat(int m,
int n)
throws JampackException
m - The number of rows in the Zmatn - The number of columns in the Zmat
JampackException - Passed from below.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||