02.05.2014 Views

Ocean* Application Development Framework - Ocean - Schlumberger

Ocean* Application Development Framework - Ocean - Schlumberger

Ocean* Application Development Framework - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Basics<br />

its increment of 3. The value 22 falls closest to the value 20 that is an even<br />

increment of the starting value of 5 and its increment of 5.<br />

Algorithm Class<br />

The Slb.<strong>Ocean</strong>.Basics namespace defines a static class Algorithm. This class<br />

implements a number of static functions for math-related algorithms. The<br />

Algorithm class definition is:<br />

public static class Algorithm<br />

{<br />

public static bool AlmostEqual (double x, double y);<br />

public static bool AlmostEqual (double x, double y, double eps);<br />

public static bool AlmostEqual (float x, float y);<br />

public static bool AlmostEqual (float x, float y, float eps);<br />

public static int GreatestCommonDivisor (int u, int v);<br />

public static long GreatestCommonDivisor (long u, long v);<br />

public static int Hasher (params int[ ] args);<br />

public static double Hypotenuse (double a, double b);<br />

public static bool InsideInterval (T x, Range1 range) where<br />

T : IComparable, IEquatable;<br />

public static bool InsideInterval (T x, T low, T high) where<br />

T : IComparable, IEquatable;<br />

public static int LargerMultiple (int m, int n) ;<br />

public static T Max (IEnumerator iter) where<br />

T : IComparable, IEquatable ;<br />

public static T Max (T [ , , ] array3d) where<br />

T : IComparable, IEquatable ;<br />

public static T Max (T [ , ] array2d) where<br />

T : IComparable, IEquatable ;<br />

public static T Max (T [ ] args) where<br />

T : IComparable, IEquatable ;<br />

public static T Min (IEnumerator iter) where<br />

T : IComparable, IEquatable ;<br />

public static T Min (T [ , , ] array3d) where<br />

T : IComparable, IEquatable ;<br />

public static T Min (T [ , ] array2d) where<br />

T : IComparable, IEquatable ;<br />

public static T Min (T [ ] args) where<br />

T : IComparable, IEquatable ;<br />

4-104 <strong>Ocean</strong> <strong>Application</strong> <strong>Development</strong> <strong>Framework</strong> 2009.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!