|
42 | 42 | * @typedef {Array<number>} NumberArray |
43 | 43 | */ |
44 | 44 |
|
| 45 | +/** |
| 46 | +* A numeric array containing only positive values. |
| 47 | +* |
| 48 | +* @typedef {NumericArray} PositiveNumericArray |
| 49 | +*/ |
| 50 | + |
| 51 | +/** |
| 52 | +* A numeric array containing only negative values. |
| 53 | +* |
| 54 | +* @typedef {NumericArray} NegativeNumericArray |
| 55 | +*/ |
| 56 | + |
| 57 | +/** |
| 58 | +* A numeric array containing only non-positive values. |
| 59 | +* |
| 60 | +* @typedef {NumericArray} NonPositiveNumericArray |
| 61 | +*/ |
| 62 | + |
| 63 | +/** |
| 64 | +* A numeric array containing only non-negative values. |
| 65 | +* |
| 66 | +* @typedef {NumericArray} NonNegativeNumericArray |
| 67 | +*/ |
| 68 | + |
45 | 69 | /** |
46 | 70 | * A numeric array containing only integer values. |
47 | 71 | * |
|
51 | 75 | /** |
52 | 76 | * An integer array containing only positive integer values. |
53 | 77 | * |
54 | | -* @typedef {IntegerArray)} PositiveIntegerArray |
| 78 | +* @typedef {IntegerArray} PositiveIntegerArray |
55 | 79 | */ |
56 | 80 |
|
57 | 81 | /** |
58 | 82 | * An integer array containing only negative integer values. |
59 | 83 | * |
60 | | -* @typedef {IntegerArray)} NegativeIntegerArray |
| 84 | +* @typedef {IntegerArray} NegativeIntegerArray |
61 | 85 | */ |
62 | 86 |
|
63 | 87 | /** |
64 | 88 | * An integer array containing only non-positive integer values. |
65 | 89 | * |
66 | | -* @typedef {IntegerArray)} NonPositiveIntegerArray |
| 90 | +* @typedef {IntegerArray} NonPositiveIntegerArray |
67 | 91 | */ |
68 | 92 |
|
69 | 93 | /** |
70 | 94 | * An integer array containing only nonnegative integer values. |
71 | 95 | * |
72 | | -* @typedef {IntegerArray)} NonNegativeIntegerArray |
| 96 | +* @typedef {IntegerArray} NonNegativeIntegerArray |
73 | 97 | */ |
74 | 98 |
|
75 | 99 | /** |
|
103 | 127 | */ |
104 | 128 |
|
105 | 129 | /** |
106 | | -* A numeric array in which the sum of all elements is `1`. |
| 130 | +* A numeric array in which all elements are non-negative and the sum of all elements is `1`. |
107 | 131 | * |
108 | | -* @typedef {NumericArray} ProbabilityArray |
| 132 | +* @typedef {NonNegativeNumericArray} ProbabilityArray |
109 | 133 | */ |
0 commit comments