/** * Convenience method for creating a new {@code DefaultWeightedTargetEstimatePair}. * * @param <TargetType> * The target (ground-truth) type. * @param <EstimateType> * The estimate (prediction) type. Usually the same as TargetType. * @param target * The target (ground-truth) value. * @param estimate * The estimate (prediction) value. * @param weight * The weight for the pair. * @return * A new target-estimate pair with the given weight. */ public static <TargetType, EstimateType> DefaultWeightedTargetEstimatePair<TargetType, EstimateType> create( final TargetType target, final EstimateType estimate, final double weight) { return new DefaultWeightedTargetEstimatePair<TargetType, EstimateType>( target, estimate, weight); } }
/** * Convenience method for creating a new {@code DefaultWeightedTargetEstimatePair}. * * @param <TargetType> * The target (ground-truth) type. * @param <EstimateType> * The estimate (prediction) type. Usually the same as TargetType. * @param target * The target (ground-truth) value. * @param estimate * The estimate (prediction) value. * @param weight * The weight for the pair. * @return * A new target-estimate pair with the given weight. */ public static <TargetType, EstimateType> DefaultWeightedTargetEstimatePair<TargetType, EstimateType> create( final TargetType target, final EstimateType estimate, final double weight) { return new DefaultWeightedTargetEstimatePair<TargetType, EstimateType>( target, estimate, weight); } }
/** * Convenience method for creating a new {@code DefaultWeightedTargetEstimatePair}. * * @param <TargetType> * The target (ground-truth) type. * @param <EstimateType> * The estimate (prediction) type. Usually the same as TargetType. * @param target * The target (ground-truth) value. * @param estimate * The estimate (prediction) value. * @param weight * The weight for the pair. * @return * A new target-estimate pair with the given weight. */ public static <TargetType, EstimateType> DefaultWeightedTargetEstimatePair<TargetType, EstimateType> create( final TargetType target, final EstimateType estimate, final double weight) { return new DefaultWeightedTargetEstimatePair<TargetType, EstimateType>( target, estimate, weight); } }