Package nz.org.riskscape.defaults.curves
Class ObservedPoints
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<org.apache.commons.math3.fitting.WeightedObservedPoint>
nz.org.riskscape.defaults.curves.ObservedPoints
- All Implemented Interfaces:
Iterable<org.apache.commons.math3.fitting.WeightedObservedPoint>,Collection<org.apache.commons.math3.fitting.WeightedObservedPoint>,List<org.apache.commons.math3.fitting.WeightedObservedPoint>
public class ObservedPoints
extends AbstractList<org.apache.commons.math3.fitting.WeightedObservedPoint>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.math3.fitting.WeightedObservedPointget(int index) Iterator<org.apache.commons.math3.fitting.WeightedObservedPoint>iterator()intsize()List<org.apache.commons.math3.fitting.WeightedObservedPoint>withLogX()List<org.apache.commons.math3.fitting.WeightedObservedPoint>List<org.apache.commons.math3.fitting.WeightedObservedPoint>withLogY()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
ObservedPoints
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection<org.apache.commons.math3.fitting.WeightedObservedPoint>- Specified by:
iteratorin interfaceIterable<org.apache.commons.math3.fitting.WeightedObservedPoint>- Specified by:
iteratorin interfaceList<org.apache.commons.math3.fitting.WeightedObservedPoint>- Overrides:
iteratorin classAbstractList<org.apache.commons.math3.fitting.WeightedObservedPoint>
-
size
public int size()- Specified by:
sizein interfaceCollection<org.apache.commons.math3.fitting.WeightedObservedPoint>- Specified by:
sizein interfaceList<org.apache.commons.math3.fitting.WeightedObservedPoint>- Specified by:
sizein classAbstractCollection<org.apache.commons.math3.fitting.WeightedObservedPoint>
-
get
public org.apache.commons.math3.fitting.WeightedObservedPoint get(int index) - Specified by:
getin interfaceList<org.apache.commons.math3.fitting.WeightedObservedPoint>- Specified by:
getin classAbstractList<org.apache.commons.math3.fitting.WeightedObservedPoint>
-
withLogX
-
withLogY
-
withLogXLogY
-
asListOfPairs
- Returns:
- a view of this list as pairs. WeightedObservedPoint is missing many niceities, like equals, or toString, which can be useful/important.
-
getYValues
- Returns:
- a
Streamof all the y values in the set of observed points. This can be a 'cheaper' operation than getting the list of WeightedObservedPoints and streaming through those.
-
getXValues
- Returns:
- a
Streamof all the x values in the set of observed points. This can be a 'cheaper' operation than getting the list of WeightedObservedPoints and streaming through those.
-