|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
OPR
Does anyone have a an excel document or something where I can plug in match scores and figure out OPR or how I could put an OPR calculator in an Android App
|
|
#2
|
||||
|
||||
|
Re: OPR
I will be posting a spreadsheet after Week 1 regarding advanced stats including OPR and a few other metrics.
I have done these spreadsheets the last few years and they can be found here: http://www.chiefdelphi.com/media/papers/3003 http://www.chiefdelphi.com/media/papers/2967 In addition, I have an app on the google play store called OPRFIRST2014 that was developed to focus specifically on OPR calculations for android. I released the entire source code for it because TheBlueAlliance began to include OPR calculations in their app and it was too hard to gain users with everyone using thebluealliance.com. So feel free to look through here and use the code to calculate OPR. (Although I may warn you, the code may be a little hard to read because I was just beginning android development and this was the first app I created). https://github.com/mray19027/OPRFIRST2014 The EXACT location of where my OPR calculations take place is here: https://github.com/mray19027/OPRFIRS...Info.java#L305 Last edited by stingray27 : 25-02-2015 at 16:23. |
|
#3
|
||||
|
||||
|
Re: OPR
Ed Law and his team has put together awesome resources for calculating OPR that can be found here.
Calculating OPR isn't actually that hard, although it requires some knowledge about basic linear algebra. Essentially, you are trying to solve a linear system of equations for a certain constant that is what you expect a team to contribute to an alliance each match (OPR). If you have teams a, b, and c playing together in one match, and they score a x amount of points, you are solving a(OPR) + b(OPR) + c(OPR) = x As more matches occur, the matrix equations become more complex. In the form of Ax = b, A is the matrix whose values correspond to the amount of matches teams played with each other, x is the OPR vector, and b is the vector of the total score each team made in all the matches they played. If you don't want to do the hard math/plug in your own match scores, you can use The Blue Alliance's API to get OPRs off their site. |
|
#4
|
||||
|
||||
|
Re: OPR
Quote:
Each element of |b| corresponds to a team, and the value of that element is the sum of the alliance scores for all alliances that team played with. |
|
#5
|
|||||
|
|||||
|
Re: OPR
Quote:
|
|
#6
|
|||||
|
|||||
|
Re: OPR
Quote:
Hit Code:
/api/v2/event/<event-key>/stats Spoiler for Lots of data:
Last edited by plnyyanks : 25-02-2015 at 19:22. |
|
#7
|
||||
|
||||
|
Re: OPR
Quote:
![]() |
|
#8
|
|||||
|
|||||
|
Re: OPR
By my calculations, DPR this year is 83% fear factor and 17% taking-cans-in-auto*
*Results not scientific |
|
#9
|
||||
|
||||
|
Re: OPR
I'm not sure that I believe this. At least 62% of statistics are made up on the spot.
|
|
#10
|
||||
|
||||
|
Re: OPR
... and the remaining 48% are wrong.
|
|
#11
|
|||||
|
|||||
|
Re: OPR
I commend your 110% effort on this joke, Ether.
|
|
#12
|
||||
|
||||
|
Re: OPR
This whole time I thought it was 43% litter and 57% gravity
|
|
#13
|
|||||
|
|||||
|
Re: OPR
You sure it's not 50% not having a loose cannon robot, 33% gravity, 10% luck, and 47% having your HP land a noodle inside your opponent's robot?
(And yes, that's more than 100%. Last I checked, 90% of statistics are made up on the spot with no math checks involved.) |
|
#14
|
||||
|
||||
|
Re: OPR
Quote:
Okay, I'm 100% done making statistics jokes now. |
|
#15
|
|||
|
|||
|
Re: OPR
Oh, if only The Blue Alliance's API gave me container scores for each match, then I could estimate the number of containers they get from the step.
Nevermind, I can totally do that. Last edited by jlmcmchl : 05-03-2015 at 19:15. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|