/** * Set the field definitions for this Expression to use * * @param fieldDefs the field definitions to use * @throws Exception if there is a problem setting the field definitions */ @Override public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); setUpField(); }
/** * Set the field definitions for this Expression to use * * @param fieldDefs the field definitions to use * @throws Exception if there is a problem setting the field definitions */ public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); setUpField(); }
/** * Set the field definitions for this Expression to use * * @param fieldDefs the field definitions to use * @throws Exception if there is a problem setting the field definitions */ public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); setUpField(); }
/** * Read and return a PMML model. * * @param stream the <code>InputStream</code> to read from * @return a PMML model * @throws Exception if there is a problem while reading from the stream */ public static PMMLModel getPMMLModel(InputStream stream) throws Exception { return getPMMLModel(stream, null); }
public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); updateDefsForArgumentsAndFunction(); }
public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); validateField(); }
/** * Gets the value at index from the array. * * @param index the index of the value to get. * @return the value at index in the array as as String. * @throws Exception if index is out of bounds. */ public String value(int index) throws Exception { return actualValue(index); }
/** * Compute the result of the kernel evaluation on the supplied vectors * * @param x the first vector instance * @param y the second vector instance * @return the result of the kernel evaluation * @throws Exception if something goes wrong */ public double evaluate(VectorInstance x, VectorInstance y) throws Exception { return x.dotProduct(y); }
/** * Compute the inverse of the normalization (i.e. map back to a unormalized value). * * @param incoming the incoming parameter values * @return the unormalized value */ public double getResultInverse(double[] incoming) { double[] a = m_linearNormNorm; double[] b = m_linearNormOrig; return computeNorm(a, b, incoming); }
/** * Get the structure of the result produced by this function. * * @return the structure of the result produced by this function. */ public Attribute getOutputDef() { return m_expression.getOutputDef(); }
@Override public String toString() { String retV = m_value; if (m_displayValue != null) { retV += "(" + m_displayValue + "): " + m_property.toString(); } return retV; }
/** * Returns an array of the names of the parameters expected * as input by this function. May return null if the function * can accept an unbounded number of arguments. * * @return an array of the parameter names (or null if the function * can accept any number of arguments). */ public String[] getParameterNames() { return m_func.getParameterNames(); }
@Override public String toString() { return m_closure.toString(m_leftMargin, m_rightMargin); } }
/** * Gets the value at index from the array as a String. Calls value(). * * @param index the index of the value to get. * @return the value at index in the array as a String. * @throws Exception if index is out of bounds. */ public String valueString(int index) throws Exception { return value(index); }
/** * Set the field definitions for this Expression to use * * @param fieldDefs the field definitions to use * @throws Exception if there is a problem setting the field definitions */ @Override public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); setUpField(); }
/** * Set the field definitions for this Expression to use * * @param fieldDefs the field definitions to use * @throws Exception if there is a problem setting the field definitions */ public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); setUpField(); }
/** * Set the field definitions for this Expression to use * * @param fieldDefs the field definitions to use * @throws Exception if there is a problem setting the field definitions */ public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); setUpField(); }
public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); updateDefsForArgumentsAndFunction(); }
public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception { super.setFieldDefs(fieldDefs); validateField(); }
/** * Gets the value at indexOfIndex from the array. Does the same as value() if * this array is not sparse. * * @param indexOfIndex the index of the index of the value to get. * @return a value from the array as a String. * @throws Exception if indexOfIndex is out of bounds. */ public String valueSparse(int indexOfIndex) throws Exception { return actualValue(indexOfIndex); }