public DefaultDenseDoubleMatrix2D(int rows, int columns) { super(rows, columns); this.rows = rows; this.cols = columns; this.size = new long[] { rows, columns }; this.values = new double[MathUtil.longToInt((long) rows * (long) columns)]; }
public boolean isUseMultiThreadedRandom() { return MathUtil.getBoolean(USEMULTITHREADEDRANDOM); }
public ImputeKNN(Matrix matrix, Object... parameters) { super(matrix); if (parameters.length != 0) { k = MathUtil.getInt(parameters[0]); } }
public final double getAsDouble(long... coordinates) { return MathUtil.getDouble(getObject(coordinates)); }
public final float getAsFloat(String variableKey) { return MathUtil.getFloat(getObject(variableKey)); }
public final double getAsDouble(long... coordinates) { return MathUtil.getDouble(getAsString(coordinates)); }
public final float getAsFloat(String id) { return MathUtil.getFloat(get(id)); }
public int lastIndexOf(long o) { for (int i = MathUtil.longToInt(size) - 1; i >= 0; i--) if (o == elementData[i]) { return i; } return -1; }
public final boolean isConnected(long node1, long node2) { return MathUtil.getBoolean(getObject(node1, node2)); }
public Map<String, Object> calculateObjects(Map<String, Object> input) { Map<String, Object> result = new HashMap<String, Object>(); int sampleCount = MathUtil.getInt(input.get(SAMPLECOUNT)); sampleCount = sampleCount == 0 ? 100 : sampleCount; int inputLength = MathUtil.getInt(input.get(INPUTLENGTH)); inputLength = inputLength == 0 ? 10 : inputLength; int targetLength = MathUtil.getInt(input.get(TARGETLENGTH)); targetLength = targetLength == 0 ? 5 : targetLength; result.put(TARGET, DataSet.Factory.HenonMap(sampleCount, inputLength, targetLength)); return result; } }
public final double getAsDouble(String id) { return MathUtil.getDouble(get(id)); }
public float getFloat(long... coordinates) { return MathUtil.getFloat(getObject(coordinates)); }
public boolean isUseOjalgo() { return MathUtil.getBoolean(get(USEOJALGO)); }
public Map<String, Object> calculateObjects(Map<String, Object> input) { Map<String, Object> result = new HashMap<String, Object>(); int sampleCount = MathUtil.getInt(input.get(SAMPLECOUNT)); sampleCount = sampleCount == 0 ? 100 : sampleCount; int inputLength = MathUtil.getInt(input.get(INPUTLENGTH)); inputLength = inputLength == 0 ? 10 : inputLength; int targetLength = MathUtil.getInt(input.get(TARGETLENGTH)); targetLength = targetLength == 0 ? 5 : targetLength; result.put(TARGET, DataSet.Factory.LogisticMap(sampleCount, inputLength, targetLength)); return result; } }
public final double getMetaDataDouble(Object key) { return metaData == null ? Double.NaN : MathUtil.getDouble(metaData.get(key)); }
public final float getAsFloat(String variableKey) { return MathUtil.getFloat(getObject(variableKey)); }
public boolean isUseParallelColt() { return MathUtil.getBoolean(get(USEPARALLELCOLT)); }