CeilFunction.java

Go to the documentation of this file.
00001 package com.graphbuilder.math.func;
00002 
00008 public class CeilFunction implements Function {
00009 
00010     public CeilFunction() {}
00011 
00015     public double of(double[] d, int numParam) {
00016         return java.lang.Math.ceil(d[0]);
00017     }
00018 
00022     public boolean acceptNumParam(int numParam) {
00023         return numParam == 1;
00024     }
00025 
00026     public String toString() {
00027         return "ceil(x)";
00028     }
00029 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1