|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.datamixer.util.IntVector
| Field Summary | |
protected static boolean |
debugEnabled_
true if logging is debug enabled |
protected static org.apache.log4j.Logger |
logger_
logger |
| Constructor Summary | |
IntVector()
|
|
IntVector(int[] vector)
|
|
| Method Summary | |
protected int[] |
cloneVector()
|
int |
getField(int index)
|
int[] |
getVector()
|
void |
multiply(int factor)
Returns the result of multiplying this by factor. |
static void |
multiply(int[] vector,
int factor)
Multiplies each field in v by factor. |
static void |
multiply(IntVector iv,
int factor)
Multiplies each field in v by factor. |
void |
setField(int index,
int value)
|
void |
setVector(int[] value)
|
int |
sign()
Returns +1 if v > 0, 0 if |
static int |
sign(int[] vector)
Returns +1 if vector > 0, 0 if |
static int |
sign(IntVector v)
Returns +1 if v > 0, 0 if |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static org.apache.log4j.Logger logger_
protected static boolean debugEnabled_
| Constructor Detail |
public IntVector()
public IntVector(int[] vector)
| Method Detail |
protected int[] cloneVector()
public int getField(int index)
public void setField(int index,
int value)
public int[] getVector()
public void setVector(int[] value)
public void multiply(int factor)
factor. Does not
change this.
public static void multiply(IntVector iv,
int factor)
v by factor.
public static void multiply(int[] vector,
int factor)
v by factor.
public int sign()
v > 0, 0 if v == 0, and -1 if
v < 0.
public static int sign(IntVector v)
v > 0, 0 if v == 0, and -1 if
v < 0.
public static int sign(int[] vector)
vector > 0, 0 if vector == 0, and -1 if
vector < 0.
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||