TensorPairs<T extends Tensor> class

Holds lists x and y for calculating properties such as correlation.

Constructors

TensorPairs.fromTensorLists(List<T> x, List<T> y)
Constructs samples for X list and Y list.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x List<T>
First list of tensors.
final
y List<T>
Second list of tensors.
final

Methods

correlation() → T
Calculates correlation of x and y.
covariance() → T
Calculates covariance of x and y.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromScalarLists<S extends num>(Iterable<S> x, Iterable<S> y) TensorPairs<Tensor<double>>
Constructs TensorPairs from two lists of int or double values.
generateFromScalarList(Iterable<num> x, num function(num x)) TensorPairs<Tensor<double>>
Generates Y values from X values.