public class TableMultiWay.BalancedTable extends Object
Modifier and Type | Method and Description |
---|---|
int[] |
getNvalues()
Returns an array of length
nKeys containing in its
i-th element (i=0,1,...nKeys-1), the number of levels
or categories of the i-th classification variable (column). |
double[] |
getTable()
Returns an array containing the frequencies for each variable.
|
double[] |
getValues()
Returns the values of the classification variables.
|
public int[] getNvalues()
nKeys
containing in its
i-th element (i=0,1,...nKeys-1), the number of levels
or categories of the i-th classification variable (column).int
array containing the number of levels or
for each variable (column) in x
.public double[] getTable()
Returns an array containing the frequencies for each variable. The
array is of length
nValues[0] x nValues[1] x ... x nValues[nKeys]
containing the frequencies in the cells of the table to be fit, where
nValues
contains the result from
getNValues
.
Empty cells are included in table, and each element of table is
nonnegative. The cells of table are sequenced so that the first
variable cycles through its nValues[0]
categories one
time, the second variable cycles through its nValues[1]
categories nValues[0]
times, the third variable cycles
through its nValues[2]
categories
nValues[0] * nValues[1]
times, etc., up to the
nKeys
-th variable, which cycles through its
nValues[nKeys - 1]
categories
nValues[0] * nValues[1] * ... * nValues[nKeys - 2]
times.
double
array containing the frequencies for
each variable in x
.public double[] getValues()
getValues
returns an array of length
nValues[0] + nValues[1] + ... + nValues[nKeys - 1]
The
first nValues[0]
elements contain the values for the
first classification variable. The next nValues[1]
contain the values for the second variable. The last
nValues[nKeys - 1]
positions contain the values for the
last classification variable, where nValues
contains the
result from getNValues
.double
array containing the values of the
classification variables.Copyright © 2020 Rogue Wave Software. All rights reserved.