Package cc.mallet.types
Interface ConstantMatrix
-
- All Known Implementing Classes:
AugmentableFeatureVector
,BiNormalSeparation
,DenseMatrix
,DenseVector
,ExpGain
,FeatureCounts
,FeatureVector
,GainRatio
,GradientGain
,HashedSparseVector
,IndexedSparseVector
,InfoGain
,KLGain
,LabelVector
,Matrixn
,Multinomial
,Multinomial.Logged
,PartiallyRankedFeatureVector
,RankedFeatureVector
,SparseMatrixn
,SparseVector
public interface ConstantMatrix
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
absNorm()
ConstantMatrix
cloneMatrix()
double
dotProduct(ConstantMatrix m)
int
getDimensions(int[] sizes)
int
getNumDimensions()
int
indexAtLocation(int location)
double
infinityNorm()
boolean
isNaN()
int
location(int index)
int
numLocations()
double
oneNorm()
void
print()
int
singleIndex(int[] indices)
int
singleSize()
void
singleToIndices(int i, int[] indices)
double
singleValue(int i)
double
twoNorm()
double
value(int[] indices)
double
valueAtLocation(int location)
-
-
-
Method Detail
-
getNumDimensions
int getNumDimensions()
-
getDimensions
int getDimensions(int[] sizes)
-
value
double value(int[] indices)
-
singleIndex
int singleIndex(int[] indices)
-
singleToIndices
void singleToIndices(int i, int[] indices)
-
singleValue
double singleValue(int i)
-
singleSize
int singleSize()
-
numLocations
int numLocations()
-
location
int location(int index)
-
valueAtLocation
double valueAtLocation(int location)
-
indexAtLocation
int indexAtLocation(int location)
-
dotProduct
double dotProduct(ConstantMatrix m)
-
absNorm
double absNorm()
-
oneNorm
double oneNorm()
-
twoNorm
double twoNorm()
-
infinityNorm
double infinityNorm()
-
print
void print()
-
isNaN
boolean isNaN()
-
cloneMatrix
ConstantMatrix cloneMatrix()
-
-