Method for constructing contingency table from a set of n-dim data points.
Method for constructing contingency table from a set of n-dim data points.
Note: no weight is applied to the data
container for dose-response data
one-dimensional bin numbers for row and column values resp.
shuffles the data to produce a table with randomized data
contingency table for ordered pair data points
Returns the index of the bin for insertion of a value into the table.
Returns the index of the bin for insertion of a value into the table.
The number to be inserted.
The binary tree specifying the bounds of each bin.
The index of the bin that should contain the value.
Returns index for insertion of data point into contingency table
Returns index for insertion of data point into contingency table
(possibly multidimensional) data point to be inserted into contingency table
tuple of delimiting trees used to determine respective bin indices
mapping of bin indices, whose index is used for insertion into the contingency table
index of 2D bin
Produces a vector of bin index vectors in order to find the bin number for some arbitrary ndim data point
Produces a vector of bin index vectors in order to find the bin number for some arbitrary ndim data point
vector of dimension lengths (bins or values)
accumulator for building key
key of bin indices
Divides list into sublists with approximately equal numbers of elements.
Divides list into sublists with approximately equal numbers of elements.
If the items in the list v can be divided equally into numBins sublists, each sublist will contain k = len(v) / numBins items. If the elements cannot be divided evenly, then there are r = len(v) mod numBins elements forming the remainder. In this case the last r bins will contain k+1 elements, while all preceding bins will contain k elements. Therefore the number of elements in the bins will not differ by more than one.
Note that the maximum from each List element becomes a bin delimiter, so if the sequence of Doubles is partitioned such that the maximum in more than one distinct List elements is identical, the bins in question are effectively collapsed into one bin
The list of doubles to be partitioned.
The number of bins to divide the list into.
A list of length numBins containing each of the sublists.
Contains methods for building contingency tables from data.