NMath |
| Exception | Condition |
|---|---|
| InvalidArgumentException | The two lengths of the data and weights vectors must be equal. |
| InvalidArgumentException | There must be at least one postive non-zero weight. |
| InvalidArgumentException | All weights must be non-negative. At least one negative weight was found. |