public abstract class Statistics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Collection<Section> |
sections
Context Section to apply these operations to.
|
Constructor and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract java.lang.Double |
average(Assignment assignment)
Calculates the average Score for the Assignment in the Section.
|
private java.util.List<java.lang.Double> |
getScores(Assignment assignment)
Returns an List of RawScores based on Assignment and Sections.
|
private java.lang.Double |
max(java.util.List<java.lang.Double> collection)
Determines the maximum RawScore in the collection.
|
private java.lang.Double |
maxHelper(java.util.List<java.lang.Double> collection,
java.lang.Double given) |
private java.lang.Double |
min(java.util.List<java.lang.Double> collection)
Determines the minimum RawScore in the collection.
|
private java.lang.Double |
minHelper(java.util.List<java.lang.Double> collection,
java.lang.Double given) |
java.util.Collection<Section> sections
private java.lang.Double max(java.util.List<java.lang.Double> collection)
collection
- Collection to determine the max RawScoreprivate java.lang.Double maxHelper(java.util.List<java.lang.Double> collection, java.lang.Double given)
private java.lang.Double min(java.util.List<java.lang.Double> collection)
collection
- Collection to determine the min RawScoreprivate java.lang.Double minHelper(java.util.List<java.lang.Double> collection, java.lang.Double given)
private java.util.List<java.lang.Double> getScores(Assignment assignment)
Assignment
- assignment of interestabstract java.lang.Double average(Assignment assignment)
assignment
- assignment you wish to calculate the average forpost: return =< max(getScores(assignment) && return >= min(getScores(assignment);