/* * @(#)ContinuousVariable.java 0.0.0 99/07/20 * * Copyright (c) 1999 by Willie Wheeler. All rights reserved. */ package stats; import lang.*; /** * Class to represent a variable with real values. * * @version 0.0.0 07/20/99 * @author Willie Wheeler */ public class ContinuousVariable extends NumericVariable { protected static final Double ZERO = new Double(0.0); public ContinuousVariable(String name) { super(name); } public boolean checkValue(Object value) { return NumberUtils.checkDouble(value); } public Object filterValue(Object value) { return NumberUtils.asClassDouble(value); } public Class getValueClass() { return Double.class; } public Object getClearValue() { return ZERO; } }