/* SCCS - @(#)NslMin.java 1.2 - 05/21/99 - 17:43:12 */ // Copyright: Copyright (c) 1997 University of Southern California Brain Project. // Copyright: This software may be freely copied provided the toplevel // Copyright: COPYRIGHT file is included with each such copy. // Copyright: Email nsl@java.usc.edu. /* * $Log: NslMin.java,v $ * Revision 1.2 1997/11/18 01:28:54 erhan * NslMin/Max now works on doubles also * * Revision 1.1 1997/07/30 21:19:30 erhan * nsl3.0 * * Revision 1.1.1.1 1997/03/12 22:52:20 nsl * new dir structure * * Revision 1.1.1.1 1997/02/08 00:40:40 nsl * Imported the Source directory * */ //////////////////////////////////////////////////////////// // // Minimum number routines // // /** Minimum number routines. There are two basic format for the evaluation method in this routine: 1, eval(a, b) -> c a, b are the parameter to evaluate the Minimum value of a and b pointwise and the result is passed out as c 2. eval(dest, a, b) -> c a, b are the parameter of the evaluation function and dest is the temporary space to hold the result. The method returns the reference to dest. */ package nslj.src.math; public final class NslMin { public static int eval(int a, int b) { if (a