Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Protected Function Ballpark(Value As Double, Median As Double, Variance As Double) As Boolean
- '// Calculates mathematically the bounds of value.
- '// Returns true if median is within value, false otherwise.
- '// The margin of error ("the ballpark") is however much you let Variance be.
- '// Ballpark For Dummies:
- '// -> Value is what you got.
- '// -> Median is what you thought Value would be.
- '// -> Variance is how much you can be wrong.
- '// <- True means you thought correctly while False means you were wrong.
- Return ((Value >= Median - Variance) And (Value <= Median + Variance))
- End Function
Advertisement
Add Comment
Please, Sign In to add comment