Sha256: cb2b8dc5ec7e2f604ce3cf725744261f62ce5a50e40becfc0be31f553461ff29
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
# opr-calc [![Gem Version](https://badge.fury.io/rb/opr-calc.png)](http://badge.fury.io/rb/opr-calc) A rubygem for calculating the OPR, DPR, and CCWM of FRC teams. ## Usage Define a new ScoreSet with `OPRCalc::ScoreSet.new`. This takes four matrices as arguments: `ared`, `ablue`, `scorered`, and `scoreblue`. The `a` matrices define what teams are in what matches. The `score` matrices define what the final match scores are. For example, consider the following match. The first, third, and fifth team are on the red alliance, which scores 26. The zeroth, second, and fourth team are on the blue alliance, which scores 56. This would result in the following rows the various matrices. `ared`: `[0, 1, 0, 1, 0, 1]` `scorered`: `[26]` `ablue`: `[1, 0, 1, 0, 1, 0]` `scoreblue`: `[56]` For other examples, read the tests, which are in the `test/` directory.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opr-calc-1.0.0 | README.md |