TensorPairs<T extends Tensor> class Null safety

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. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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. [...]