ModFunction.java

Go to the documentation of this file.
00001 package com.graphbuilder.math.func;
00002 
00006 public class ModFunction implements Function {
00007 
00008     public ModFunction() {}
00009 
00014     public double of(double[] d, int numParam) {
00015         return d[0] % d[1];
00016     }
00017 
00021     public boolean acceptNumParam(int numParam) {
00022         return numParam == 2;
00023     }
00024 
00025     public String toString() {
00026         return "mod(x, y)";
00027     }
00028 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1