public abstract class SimilarityMatrix<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,Integer> |
bitmap |
protected String |
delimiter |
protected IDistanceFunction<T> |
distance |
protected Logger |
logger |
Constructor and Description |
---|
SimilarityMatrix() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
accept(float t,
float threshold) |
com.tdunning.math.stats.TDigest |
createMatrix(String path,
boolean dense,
float threshold) |
com.tdunning.math.stats.TDigest |
createMatrix(String path,
boolean dense,
float threshold,
int page,
int pagesize) |
String |
getDelimiter() |
IDistanceFunction<T> |
getDistance() |
Logger |
getLogger() |
protected String |
getSimMatrixFormat() |
protected void |
histogram2file(com.tdunning.math.stats.TDigest tdigest,
String file_quantiles,
String file_histogram) |
static String |
histogram2string(com.tdunning.math.stats.TDigest tdigest) |
static String |
histogram2string(com.tdunning.math.stats.TDigest tdigest,
int n,
boolean bounds,
boolean histogram) |
protected abstract ambit2.descriptors.simmatrix.SimilarityMatrix.L |
parseLineDense(String line,
long record) |
protected abstract ambit2.descriptors.simmatrix.SimilarityMatrix.L |
parseLineSparse(String line,
long record) |
void |
setDelimiter(String delimiter) |
void |
setDistance(IDistanceFunction<T> distance) |
void |
setLogger(Logger logger) |
protected IDistanceFunction<T> distance
protected String delimiter
protected transient Logger logger
public IDistanceFunction<T> getDistance()
public void setDistance(IDistanceFunction<T> distance)
public String getDelimiter()
public void setDelimiter(String delimiter)
public Logger getLogger()
public void setLogger(Logger logger)
protected abstract ambit2.descriptors.simmatrix.SimilarityMatrix.L parseLineSparse(String line, long record) throws Exception
Exception
protected abstract ambit2.descriptors.simmatrix.SimilarityMatrix.L parseLineDense(String line, long record) throws Exception
Exception
public com.tdunning.math.stats.TDigest createMatrix(String path, boolean dense, float threshold) throws Exception
Exception
protected String getSimMatrixFormat()
public com.tdunning.math.stats.TDigest createMatrix(String path, boolean dense, float threshold, int page, int pagesize) throws Exception
Exception
protected void histogram2file(com.tdunning.math.stats.TDigest tdigest, String file_quantiles, String file_histogram)
protected abstract boolean accept(float t, float threshold)
public static String histogram2string(com.tdunning.math.stats.TDigest tdigest)
public static String histogram2string(com.tdunning.math.stats.TDigest tdigest, int n, boolean bounds, boolean histogram)
tdigest
- n
- bounds
- print boundshistogram
- true ; quantiles : falseCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.