06-29-2015, 07:08 PM
|
#1
|
Rookie
|
Personally Developed WAR Calculator (Need Visual Studio/Similar Compiler)
In a text file, I have the code I personally used for a WAR calculator, simply copy and paste it into a new project (New Project>Win32 Project>Next>chooseCONSOLE APPLICATION,EMPTY PROJECT,NO SDL>(in tab)PROJECT>Add New Item>Paste) and under DEBUG, click "Start Without Debugging". NAME THE PROJECT AS 'insertname'.*C*, not .cpp
You enter your stats and rated fielding/baserunning in as prompted, with spaces until each line is done, and you get a full readout of regular stats, along with weighted on-base average (wOBA), weighted runs against average (wRAA) and a player WAR estimate. There are checks down at the bottom that I used in case anything goes terribly wrong, too.
Baserunning and fielding runs are calculated using an array with historical numbers rated from poor to great. If anything seems off, this is where things would go wrong. The offensive numbers are usually very accurate. For example: using Bryce Harper's stats and league stats from about a month ago (when I wrote the original C-program), I personally come up with a wRAA figure of 40.7 or ~41 compared to Baseball Reference's current figure under the 'Player Value' section--42. If you can estimate your defensive performance well, you can come up with a good estimate of WAR.
I hope those of you that can use this will have fun trying to put your RTTS or clutch franchise players into context. If you feel like, you can even post some of your results here.
[ATTACH]Here you go[/ATTACH].
|
|
|