Search in sources :

Example 1 with Int_Dbl

use of suite.primitive.Int_Dbl in project suite by stupidsing.

the class Statistic method correlation.

public double correlation(float[] xs, float[] ys) {
    Int_Dbl xf = i -> xs[i];
    Int_Dbl yf = i -> ys[i];
    vec.sameLength(xs, ys);
    return correlation(xf, yf, xs.length);
}
Also used : Matrix(suite.math.linalg.Matrix) CholeskyDecomposition(suite.math.linalg.CholeskyDecomposition) To(suite.util.To) IntObjSource(suite.primitive.IntPrimitives.IntObjSource) IntObjMap(suite.primitive.adt.map.IntObjMap) Fun(suite.util.FunUtil.Fun) List(java.util.List) Obj_Int(suite.primitive.IntPrimitives.Obj_Int) IntObjPair(suite.primitive.adt.pair.IntObjPair) Streamlet(suite.streamlet.Streamlet) Floats_(suite.primitive.Floats_) Vector(suite.math.linalg.Vector) FltObjPair(suite.primitive.adt.pair.FltObjPair) IntMutable(suite.primitive.IntMutable) Fail(suite.util.Fail) Int_Dbl(suite.primitive.Int_Dbl) Int_Flt(suite.primitive.Int_Flt) Int_Dbl(suite.primitive.Int_Dbl)

Aggregations

List (java.util.List)1 CholeskyDecomposition (suite.math.linalg.CholeskyDecomposition)1 Matrix (suite.math.linalg.Matrix)1 Vector (suite.math.linalg.Vector)1 Floats_ (suite.primitive.Floats_)1 IntMutable (suite.primitive.IntMutable)1 IntObjSource (suite.primitive.IntPrimitives.IntObjSource)1 Obj_Int (suite.primitive.IntPrimitives.Obj_Int)1 Int_Dbl (suite.primitive.Int_Dbl)1 Int_Flt (suite.primitive.Int_Flt)1 IntObjMap (suite.primitive.adt.map.IntObjMap)1 FltObjPair (suite.primitive.adt.pair.FltObjPair)1 IntObjPair (suite.primitive.adt.pair.IntObjPair)1 Streamlet (suite.streamlet.Streamlet)1 Fail (suite.util.Fail)1 Fun (suite.util.FunUtil.Fun)1 To (suite.util.To)1