public class VectorStats extends Object
| Constructor and Description |
|---|
VectorStats() |
| Modifier and Type | Method and Description |
|---|---|
static SparseVector |
mean(InstanceList instances)
Returns a
SparseVector whose entries (taken from the union of
those in the instances) are the expected values of those in the
InstanceList. |
static SparseVector |
mean(InstanceList instances,
int numIndices)
Returns a
SparseVector whose entries (dense with the given
number of indices) are the expected values of those in the
InstanceList. |
static SparseVector |
mean(InstanceList instances,
int[] indices)
Returns a
SparseVector whose entries (the given indices) are
the expected values of those in the InstanceList. |
static SparseVector |
stddev(InstanceList instances)
Square root of unbiased variance.
|
static SparseVector |
stddev(InstanceList instances,
boolean unbiased)
Square root of variance.
|
static SparseVector |
stddev(InstanceList instances,
SparseVector mean)
Square root of unbiased variance of instances having the given mean
|
static SparseVector |
stddev(InstanceList instances,
SparseVector mean,
boolean unbiased)
Square root of variance.
|
static SparseVector |
variance(InstanceList instances)
Returns unbiased variance
|
static SparseVector |
variance(InstanceList instances,
boolean unbiased)
Returns a
SparseVector whose entries (taken from the union of
those in the instances) are the variance of those in the
InstanceList. |
static SparseVector |
variance(InstanceList instances,
SparseVector mean)
Returns unbiased variance of instances having the given mean.
|
static SparseVector |
variance(InstanceList instances,
SparseVector mean,
boolean unbiased)
Returns a
SparseVector whose entries (taken from the mean
argument) are the variance of those in the InstanceList. |
public static SparseVector mean(InstanceList instances)
SparseVector whose entries (taken from the union of
those in the instances) are the expected values of those in the
InstanceList. This implies the returned vector will not have
binary values.public static SparseVector mean(InstanceList instances, int numIndices)
SparseVector whose entries (dense with the given
number of indices) are the expected values of those in the
InstanceList. This implies the returned vector will not have
binary values.public static SparseVector mean(InstanceList instances, int[] indices)
SparseVector whose entries (the given indices) are
the expected values of those in the InstanceList.
This implies the returned vector will not have binary values.public static SparseVector variance(InstanceList instances, boolean unbiased)
SparseVector whose entries (taken from the union of
those in the instances) are the variance of those in the
InstanceList. This implies the returned vector will not have
binary values.unbiased - Normalizes by N-1 when true, and by N otherwise.public static SparseVector variance(InstanceList instances, SparseVector mean, boolean unbiased)
SparseVector whose entries (taken from the mean
argument) are the variance of those in the InstanceList. This
implies the returned vector will not have
binary values.unbiased - Normalizes by N-1 when true, and by N otherwise.public static SparseVector variance(InstanceList instances)
public static SparseVector variance(InstanceList instances, SparseVector mean)
public static SparseVector stddev(InstanceList instances, SparseVector mean, boolean unbiased)
mean - Mean of the given instances.unbiased - Normalizes variance by N-1 when true, and by N
otherwise.variancepublic static SparseVector stddev(InstanceList instances)
public static SparseVector stddev(InstanceList instances, boolean unbiased)
unbiased - Normalizes variance by N-1 when true, and by N
otherwise.variancepublic static SparseVector stddev(InstanceList instances, SparseVector mean)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.