|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTable
TableScaled
public class TableScaled
Field Summary |
---|
Fields inherited from class Table |
---|
FLAG_DEBUG, FLAG_DEBUG_STATE_MODIFICATION, ONE, ZERO |
Constructor Summary | |
---|---|
TableScaled(FiniteVariable[] vars,
double scalar)
Creates a new table that has a TableIndex generated from the variables supplied. |
|
TableScaled(List variables,
double scalar)
Creates a new table that has a TableIndex generated from the variables supplied. |
|
TableScaled(List variables,
double[] values,
double scalar)
Creates a new table that has a TableIndex generated from the variables supplied. |
|
TableScaled(Object[] vars,
double[] values,
double scalar)
Creates a new table that has a TableIndex generated from the variables supplied. |
|
TableScaled(Table t)
Creates a copy of the table. |
|
TableScaled(Table t,
double scalar)
Creates a copy of the table. |
|
TableScaled(TableIndex index,
double scalar)
Creates a table with the supplied index. |
|
TableScaled(TableIndex index,
double[] values,
double scalar)
Creates a new Table. |
Method Summary | |
---|---|
Object |
clone()
|
static Table |
createTable(TableIndex indx,
double scalar)
|
static Table |
createTable(TableIndex indx,
double[] data,
double scalar,
boolean scaleData)
|
double[] |
dataclone()
Will return a copy of the data array which has already been scaled to real probability values. |
Table |
expand(FiniteVariable var)
|
void |
fill(double value)
|
Table |
forget(Set vars)
|
double |
getCP(int ind)
|
double |
getCPScaled(int ind)
|
double |
getCPScaled(int[] indices)
|
static Table |
innerProduct(Table t1,
Table t2)
|
static double |
logsum(double lna,
double lnb)
Copied from edu.ucla.belief.recursiveconditioning.RCUtilities |
void |
makeUniform()
|
Table |
multiply(Table t2)
|
static Table |
multiplyAll(Set tables)
|
void |
multiplyInto(Table t2)
|
void |
normalize(int conditionIndex)
|
double |
scalar()
|
void |
set(Table t)
Copies the values from another compatible array. |
void |
setCP(int indx,
double val)
|
Table |
shrink(Map evidence)
|
static double |
sum(double[] values,
double scalar,
int startindex,
int endindex)
|
double |
toRealPr(double in)
|
double[] |
toRealPr(double[] in)
|
static double[] |
toRealPr(double[] in,
double scalar)
|
static double |
toRealPr(double in,
double scalar)
|
double |
toScaled(double in)
|
double[] |
toScaled(double[] in)
|
static double[] |
toScaled(double[] in,
double scalar)
|
static double |
toScaled(double in,
double scalar)
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableScaled(Table t)
public TableScaled(Table t, double scalar)
public TableScaled(TableIndex index, double scalar)
public TableScaled(TableIndex index, double[] values, double scalar)
index
- This is used directly (not copied).values
- These are used directly (not copied).public TableScaled(List variables, double scalar)
public TableScaled(List variables, double[] values, double scalar)
values
- These are used directly (not copied).public TableScaled(FiniteVariable[] vars, double scalar)
public TableScaled(Object[] vars, double[] values, double scalar)
values
- These are used directly (not copied).Method Detail |
---|
public double scalar()
scalar
in class Table
public double toScaled(double in)
public double[] toScaled(double[] in)
public static double toScaled(double in, double scalar)
public static double[] toScaled(double[] in, double scalar)
public double toRealPr(double in)
public double[] toRealPr(double[] in)
public static double toRealPr(double in, double scalar)
public static double[] toRealPr(double[] in, double scalar)
public void normalize(int conditionIndex) throws Exception
normalize
in class Table
Exception
public static double sum(double[] values, double scalar, int startindex, int endindex) throws Exception
Exception
public void makeUniform()
makeUniform
in class Table
public Object clone()
clone
in interface Potential
clone
in class Table
public double[] dataclone()
dataclone
in class Table
public double getCP(int ind)
getCP
in interface CPTInfo.ReadableWritableTable
getCP
in class Table
public double getCPScaled(int ind)
getCPScaled
in class Table
public double getCPScaled(int[] indices)
getCPScaled
in class Table
public void setCP(int indx, double val)
setCP
in interface CPTInfo.ReadableWritableTable
setCP
in class Table
public void fill(double value)
fill
in class Table
public void set(Table t)
set
in class Table
public void multiplyInto(Table t2)
multiplyInto
in class Table
public Table multiply(Table t2)
multiply
in class Table
public static Table multiplyAll(Set tables)
public Table expand(FiniteVariable var)
expand
in class Table
public Table forget(Set vars)
forget
in class Table
public static final double logsum(double lna, double lnb)
public Table shrink(Map evidence)
shrink
in class Table
public static Table innerProduct(Table t1, Table t2)
public static Table createTable(TableIndex indx, double[] data, double scalar, boolean scaleData)
public static Table createTable(TableIndex indx, double scalar)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |