Methods
(static) combinations(inArr, k) → {array}
Finds all possible combinations of length k in a given array.
Parameters:
Name | Type | Description |
---|---|---|
inArr |
Array.<number> | The input array to combine |
k |
number | The length of the possible combinations |
- Source:
Returns:
Array of Sets representing all permutations of k length.
- Type
- array
(static) countCombinations(n, r) → {number}
Counts the number of permutations using n choose r (nCr).
Parameters:
Name | Type | Description |
---|---|---|
n |
number | The n value in nCr |
r |
number | The r value in nCr |
- Source:
Returns:
Numerical value representing the evaluation of nCr
- Type
- number
(static) countPowerSet(size) → {number}
Evaluates the number of power sets with the given size
Parameters:
Name | Type | Description |
---|---|---|
size |
number | Input to find power sets for |
- Source:
Returns:
Numerical value representing the evaluation for the number of power sets
- Type
- number
(static) powerSet(inArr) → {array}
Evaluates statistical correlation of two arrays.
Parameters:
Name | Type | Description |
---|---|---|
inArr |
Array.<number> | Input to find power sets for |
- Source:
Returns:
Array of Sets representing all power sets.
- Type
- array