15,915,093 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by H2O-au (Top 6 by date)
H2O-au
3-Mar-17 1:59am
View
Unwanted? No! Wanted! And intuitive! :D I find windows that only look backward to be unintuitive. When I want smoothed data, I expect a symmetrical window. I get that only-looking-back seems to be the 'standard' (e.g. it's all Excel charts will do) but personally I've never understood the statistical logic of it. Maybe people have other reasons to prefer asymmetrical windows?
H2O-au
3-Mar-17 0:50am
View
Yep, that's right, my centred window wrecks all standard tests! :D So your new results are the expected results, but skipping the first two expected elements and adding two extra elements at the end (since my function looks ahead by 2 elements).
H2O-au
3-Mar-17 0:30am
View
Looks like we're just expecting different window sizes! My parameter is a symmetric half-window, so for windows of total size 5 you need to put in 2 (i.e. current element +/- 2 elements). So try
series.RollingStats(2)
, and you should get what you expect (offset by 2 elements).
H2O-au
26-Feb-17 11:14am
View
It looks like you're using the sum-of-squares formula for variance? Be careful of this, it tends to be
numerically unstable due to catastrophic cancellation
. Discovered this myself the hard way a few months back!
H2O-au
21-Jan-17 17:14pm
View
Actually, my main reason for using byte is more devious. I know my algorithm fails for numbers above 999. I couldn't be bothered going through and checking that all numbers are less than 999, so by using byte, I cover the required range but make the data integrity the caller's responsibility! ;D
I'm sure I could justify it by mumbling something about 'type safety', but I'm probably just being lazy...
H2O-au
20-Jan-17 20:42pm
View
Yeah I get 910668943 when I use an int instead of a System.Numerics.BigInteger. The aggregation epic-fails. Seems that lowly ints can't handle 150-digit numbers! :D Though with BigInteger I get 99694916751.
Show More