Go to Post There's a balance to it all, when the engineers guide the students, and both cooperate to build a robot. There can be no better way then when both sides are in cooperation - the true spirit of FIRST. - Jim McGeehin [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 25-02-2015, 16:12
KosmicKhaos's Avatar
KosmicKhaos KosmicKhaos is offline
Calm Cool Collected
AKA: Andrew Thompson
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Webster NY
Posts: 139
KosmicKhaos has a spectacular aura aboutKosmicKhaos has a spectacular aura about
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
Reply With Quote
  #2   Spotlight this post!  
Unread 25-02-2015, 16:20
stingray27's Avatar
stingray27 stingray27 is offline
Registered User
AKA: Michael Ray
FRC #0027 (Team RUSH)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Clarkston, MI
Posts: 209
stingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to all
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
__________________
Michael Ray
Team RUSH 27

Driving Record: 93-64-0 Best Finish: Finalist (x4 FiM Districts)
Coaching Record: 16-7-0 Best Finish: Winner (Kettering Invitationa)l


Last edited by stingray27 : 25-02-2015 at 16:23.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-02-2015, 17:38
saikiranra's Avatar
saikiranra saikiranra is offline
UCI
AKA: Saikiran Ramanan
FRC #3476 (Code Orange)
Team Role: Mentor
 
Join Date: Oct 2012
Rookie Year: 2011
Location: Irvine, CA
Posts: 200
saikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond reputesaikiranra has a reputation beyond repute
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.
__________________
2014 - Current: Team 3476 Electronics, Programming, and Scouting Mentor
2011 - 2014: Team 696 Student and Drive Coach
Reply With Quote
  #4   Spotlight this post!  
Unread 25-02-2015, 19:01
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by saikiranra View Post
b is the vector of the total score each team made in all the matches they played
Not quite.

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.


Reply With Quote
  #5   Spotlight this post!  
Unread 25-02-2015, 19:15
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,577
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by saikiranra View Post
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.
I don't see the OPR anywhere in their API; am I missing something, or did you just mean that the data required to plug into an OPR calculation is there?
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-02-2015, 19:19
plnyyanks's Avatar
plnyyanks plnyyanks is online now
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by GeeTwo View Post
I don't see the OPR anywhere in their API; am I missing something, or did you just mean that the data required to plug into an OPR calculation is there?
The API will return the result of the calculations for OPR, DPR, and CCWM. See here in the docs.

Hit
Code:
/api/v2/event/<event-key>/stats
It'll return an output like:
Spoiler for Lots of data:

Code:
➜  phil@fedora ~  curl --header "X-TBA-App-Id:foo:bar:baz" http://www.thebluealliance.com/api/v2/event/2014cthar/stats
{"oprs": {"558": 61.03862458660732, "571": 25.26315867245658, "1124": 41.56940261999079, "4572": 22.657822140768516, "238": 22.044939318938813, "3146": 12.63390393300261, "178": 46.950456367359891, "177": 92.226404149116206, "4557": 43.334926949271072, "175": 81.334997593159528, "230": 53.027513648529002, "236": 58.096099167356243, "2785": 11.601348126111738, "3555": 7.2284300176004974, "3104": 14.702459074944898, "173": 9.5159523225474345, "839": 19.960465485473357, "2170": 22.066703794171406, "181": 49.492453525796911, "3182": 26.955221924000668, "3634": 34.152969306235953, "4097": 28.571656205234454, "716": 57.420439555814042, "5142": 15.649331351710339, "999": 36.426610246955612, "3525": 50.453711167618096, "5129": 27.586754386014597, "228": 52.10253623902166, "4628": 17.892949898607437, "95": 29.973898403369855, "176": 65.769697919858061, "1991": 53.614388815829997, "4055": 51.617441033456331, "3464": 37.843662949585344, "3566": 31.888458744244957, "4958": 33.821768467384359, "1687": 12.329197344290588, "1740": 7.5272579695618127, "2067": 39.32265324466966}, "ccwms": {"558": 47.714841929054501, "571": -2.2244726240688477, "1124": 32.556983571913001, "4572": -6.0853698077920315, "238": -35.070117174800544, "3146": -36.885966963297193, "178": 14.96298531132085, "177": 71.191849807978272, "4557": -7.7570855600831052, "175": 30.835262590761605, "230": 3.6399453862621081, "236": 20.44387440579483, "2785": -37.350014006119174, "3555": -34.672659512804991, "3104": -28.249324008158332, "173": -37.577530295276226, "839": -19.803791613841952, "2170": -27.524965779988744, "181": 3.7024741266095287, "3182": -8.8673292856880401, "3634": 9.0289537858067348, "4097": -28.403823457387144, "716": 25.671255492674394, "5142": -18.532183768327222, "999": 16.38015834182071, "3525": 27.23416882060123, "5129": -15.548754966962644, "228": 8.7310226121904542, "4628": 7.01561775548765, "95": 5.8413142346092108, "176": 32.851548640364612, "1991": 37.027081101957357, "4055": 13.387511797720734, "3464": 1.4555715944903778, "3566": -15.204361189187283, "4958": -13.407078085909482, "1687": -23.514376735710577, "1740": -21.265070753703672, "2067": 8.2718542816890643}, "dprs": {"558": 13.32378265755275, "571": 27.487631296525407, "1124": 9.0124190480777919, "4572": 28.743191948560586, "238": 57.115056493739317, "3146": 49.519870896299814, "178": 31.987471056039084, "177": 21.034554341137934, "4557": 51.092012509354177, "175": 50.499735002397919, "230": 49.387568262266932, "236": 37.652224761561435, "2785": 48.951362132230891, "3555": 41.901089530405542, "3104": 42.951783083103251, "173": 47.093482617823668, "839": 39.764257099315302, "2170": 49.591669574160193, "181": 45.789979399187374, "3182": 35.822551209688733, "3634": 25.12401552042925, "4097": 56.975479662621588, "716": 31.749184063139648, "5142": 34.181515120037545, "999": 20.046451905134909, "3525": 23.219542347016823, "5129": 43.135509352977216, "228": 43.371513626831245, "4628": 10.877332143119782, "95": 24.13258416876063, "176": 32.918149279493427, "1991": 16.587307713872672, "4055": 38.229929235735582, "3464": 36.388091355095021, "3566": 47.092819933432281, "4958": 47.228846553293849, "1687": 35.843574080001126, "1740": 28.792328723265495, "2067": 31.05079896298054}}
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android

Last edited by plnyyanks : 25-02-2015 at 19:22.
Reply With Quote
  #7   Spotlight this post!  
Unread 05-03-2015, 17:30
Citrus Dad's Avatar
Citrus Dad Citrus Dad is offline
Business and Scouting Mentor
AKA: Richard McCann
FRC #1678 (Citrus Circuits)
Team Role: Mentor
 
Join Date: May 2012
Rookie Year: 2012
Location: Davis
Posts: 984
Citrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by plnyyanks View Post
The API will return the result of the calculations for OPR, DPR, and CCWM.
I'm really interested in that DPR this year...
Reply With Quote
  #8   Spotlight this post!  
Unread 05-03-2015, 17:34
plnyyanks's Avatar
plnyyanks plnyyanks is online now
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by Citrus Dad View Post
I'm really interested in that DPR this year...
By my calculations, DPR this year is 83% fear factor and 17% taking-cans-in-auto*

*Results not scientific
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #9   Spotlight this post!  
Unread 05-03-2015, 20:00
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,051
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by plnyyanks View Post
By my calculations, DPR this year is 83% fear factor and 17% taking-cans-in-auto
I'm not sure that I believe this. At least 62% of statistics are made up on the spot.
Reply With Quote
  #10   Spotlight this post!  
Unread 05-03-2015, 20:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by Caleb Sykes View Post
At least 62% of statistics are made up on the spot.
... and the remaining 48% are wrong.


Reply With Quote
  #11   Spotlight this post!  
Unread 06-03-2015, 22:07
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,626
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: OPR

Quote:
Originally Posted by Ether View Post
Quote:
Originally Posted by Caleb Sykes View Post
I'm not sure that I believe this. At least 62% of statistics are made up on the spot.
... and the remaining 48% are wrong.
I commend your 110% effort on this joke, Ether.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #12   Spotlight this post!  
Unread 06-03-2015, 22:54
PayneTrain's Avatar
PayneTrain PayneTrain is offline
Trickle-Down CMP Allocation
AKA: Lizard King
FRC #0422 (The Meme Tech Pneumatic Devices)
Team Role: Mascot
 
Join Date: Mar 2010
Rookie Year: 2009
Location: RVA
Posts: 2,240
PayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond reputePayneTrain has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by plnyyanks View Post
By my calculations, DPR this year is 83% fear factor and 17% taking-cans-in-auto*

*Results not scientific
This whole time I thought it was 43% litter and 57% gravity
Reply With Quote
  #13   Spotlight this post!  
Unread 06-03-2015, 23:24
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,755
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by PayneTrain View Post
This whole time I thought it was 43% litter and 57% gravity
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.)
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
  #14   Spotlight this post!  
Unread 07-03-2015, 02:40
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,051
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by EricH View Post
(And yes, that's more than 100%. Last I checked, 90% of statistics are made up on the spot with no math checks involved.)
At least 50% of the posts on this thread are a joke.

Okay, I'm 100% done making statistics jokes now.
Reply With Quote
  #15   Spotlight this post!  
Unread 05-03-2015, 19:11
jlmcmchl jlmcmchl is offline
FF - The Breakfast Company
AKA: Jordan McMichael
FRC #0027 (Team RUSH 27)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Clarkston,MI
Posts: 327
jlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud of
Re: OPR

Quote:
Originally Posted by Citrus Dad View Post
I'm really interested in that DPR this year...
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.
__________________


Field reset: Kettering Kickoff ('13, '14), Kettering ('14, '15), Bedford ('14), Woodhaven ('16), Carver ('16), Einstein! ('16)
Referee: Bedford ('15), MARC ('15, '16), Kettering Kickoff ('15, '16), Kettering District (#1&2: '16), Troy ('16)

Last edited by jlmcmchl : 05-03-2015 at 19:15.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi