Comments (3)
This is the problem:
min nan 1 //results in nan
max nan 1 //results in nan
1. < nan //false
1. > nan //false
I think the best option is to return a empty Interval if the collection contains a nan. This leads to an additional check for each element if it is nan, but I think this is a necessary step.
from fsharp.stats.
After reevaluation we came to the conclusion that a nan in a collection should throw an exception, so the user has full control and notices that something is odd in the data.
The function should be updated to allow overloads with arguments that define what happens to nan values.
from fsharp.stats.
Intervals.ofSeqBy snd (List.indexed [5;5;5;5])
results in ClosedInterval ((0, 5), (0, 5)). While not wrong by default, it would be beneficial if the Intergal maximum is the last occurrence within the collection. It can by fixed by modification of
tolet mmax,mmaxV = if current >= maximum then current,e.Current else maximum,maximumV
from fsharp.stats.
Related Issues (20)
- Decision trees and random forest
- kNN classification HOT 1
- Documentation request for X² test
- [Feature Request] Surface fitting for simple data, and example that shows the surface in plotly HOT 5
- [Feature Request] NaN safety, we probably need something more than doc strings. HOT 2
- [Feature Request] review / remove [<AutoOpen>] on modules that overlay FSharp.Core collection types. HOT 2
- [Feature Request]addition of Normalized Mutual Information
- [BUG] Incorrect Behavior in FSharp.Stats.SpecializedGenericImpl.setColM for Non-Square Matrices
- [Feature Request] QR Matrix Decomposition using Gram-Schmidt HOT 2
- [Feature Request] weighted KNN imputation
- `JaggedCollection.transpose` results in wrong result when applied to rows of varying length
- [BUG] HierarchicalClustering cannot digest data of generic type anymore
- [BUG] Interval.isIntersection false positive on one-sided open intervals HOT 1
- [Feature Request] Support intersect on mixed interval types
- [BUG] Seq.weightedMean returns a function
- [BUG] Seq.stats returns wrong seq length (N)
- [Feature Request] Rename round operator HOT 1
- Update fsdocs to new documentation template HOT 1
- [BUG] ApiDocs github links go to the wrong branch.
- [Feature Request] Median should give a more helpful error for empty non-float sequences
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.stats.