/** Constructs a quantitative result initialized to the specified value. */ public QuantitativeResultImpl(final double[] values) { setValues(values); }
/** Set the statistical method used to determine the value, or {@code null} if none. */ public synchronized void setErrorStatistic(final InternationalString newValue) { checkWritePermission(); errorStatistic = newValue; } }
/** * Set the quantitative value or values, content determined by the evaluation procedure used. * * @since 2.4 */ public synchronized void setValues(final List<Record> newValues) { values = copyList(newValues, values, Record.class); }
final InternationalString description = Vocabulary.formatInternational(VocabularyKeys.ROOT_MEAN_SQUARED_ERROR); final QuantitativeResultImpl result = new QuantitativeResultImpl(); result.setValues(new double[] {error}); result.setValueUnit(CRSUtilities.getUnit(targetCRS.getCoordinateSystem())); result.setErrorStatistic(description); final PositionalAccuracyImpl accuracy = new PositionalAccuracyImpl(result); accuracy.setEvaluationMethodType(EvaluationMethodType.DIRECT_INTERNAL);
final QuantitativeResultImpl accuracyResult; final AbsoluteExternalPositionalAccuracyImpl accuracyElement; accuracyResult = new QuantitativeResultImpl(new double[] {accuracy}); accuracyResult.setValueUnit(
/** Quantitative value or values, content determined by the evaluation procedure used. */ public synchronized List<Record> getValues() { return values = nonNullList(values, Record.class); }
/** * Set the quantitative value or values, content determined by the evaluation procedure used. * * @since 2.4 */ public synchronized void setValues(final Collection/*<Double>*/ newValues) { values = copyCollection(newValues, values, Double.class); }
/** * Quantitative value or values, content determined by the evaluation procedure used. */ public synchronized Collection getValues() { if (values == null) { if (isModifiable()) { values = new CheckedArrayList(Double.class); } else { values = Collections.EMPTY_LIST; } } return values; }
final QuantitativeResultImpl accuracyResult; final AbsoluteExternalPositionalAccuracyImpl accuracyElement; accuracyResult = new QuantitativeResultImpl(new double[] {accuracy}); accuracyResult.setValueUnit(
/** * Quantitative value or values, content determined by the evaluation procedure used. */ public synchronized List<Record> getValues() { return values = nonNullList(values, Record.class); }
/** * Set the quantitative value or values, content determined by the evaluation procedure used. */ public synchronized void setValues(final double[] newValues) { final List<Record> records; if (newValues == null) { records = null; } else { final Record[] data = new Record[newValues.length]; for (int i = 0; i < newValues.length; i++) { data[i] = new SimpleRecord(newValues[i]); } records = Arrays.asList(data); } setValues(records); }
/** Set the value type for reporting a data quality result, or {@code null} if none. */ public synchronized void setValueType(final RecordType newValue) { checkWritePermission(); valueType = newValue; }
/** * Set the quantitative value or values, content determined by the evaluation procedure used. * * @since 2.4 */ public synchronized void setValues(final List<Record> newValues) { values = copyList(newValues, values, Record.class); }
/** * Constructs a quantitative result initialized to the specified value. */ public QuantitativeResultImpl(final double[] values) { setValues(values); }
/** Set the value unit for reporting a data quality result, or {@code null} if none. */ public synchronized void setValueUnit(final Unit newValue) { checkWritePermission(); valueUnit = newValue; }
/** * Constructs a quantitative result initialized to the specified value. */ public QuantitativeResultImpl(final double[] values) { setValues(values); }
/** * Set the statistical method used to determine the value, or {@code null} if none. */ public synchronized void setErrorStatistic(final InternationalString newValue) { checkWritePermission(); errorStatistic = newValue; } }
/** * Set the quantitative value or values, content determined by the evaluation procedure used. */ public synchronized void setValues(final double[] newValues) { final List<Record> records; if (newValues == null) { records = null; } else { final Record[] data = new Record[newValues.length]; for (int i=0; i<newValues.length; i++) { data[i] = new SimpleRecord(newValues[i]); } records = Arrays.asList(data); } setValues(records); }
/** * Set the value unit for reporting a data quality result, or {@code null} if none. */ public synchronized void setValueUnit(final Unit newValue) { checkWritePermission(); valueUnit = newValue; }
/** * Set the value type for reporting a data quality result, or {@code null} if none. */ public synchronized void setValueType(final RecordType newValue) { checkWritePermission(); valueType = newValue; }