DK96-OS / MathTools

Mathematical Software Components. This library is actively maintained, and aims to stay updated. New feature proposals are welcome, but may not be included.
Apache License 2.0
2 stars 1 forks source link

Should OutlierPolicy maintain information on a Data Set #33

Closed DK96-OS closed 2 years ago

DK96-OS commented 2 years ago

Is this an important feature: for ensuring accuracy, improving efficiency, ease-of-use?

Should DeviationPolicy maintain an instance of DistributionCharacteristics? Originally posted by @DK96-OS in https://github.com/DK96-OS/MathTools/issues/32#issuecomment-1025694118

DK96-OS commented 2 years ago

The policy could track whether the Data Set has been sorted.

If sorted, a much faster outlier algorithm could be used.

DK96-OS commented 2 years ago

When an outlier is removed, the DistributionCharacteristics might be able to be updated without summing up the list.

This idea can be implemented by some static function that uses:

And produces a new DC.

The tricky part is handling precision.

The user would be able to access this function, but the big idea behind this Issue is how much should these details be managed by the library?