norsys.netica
Class Util

java.lang.Object
  |
  +--norsys.netica.Util

public class Util
extends java.lang.Object

A collection of static methods of general use to Java developers.

Since:
2.08

Constructor Summary
Util()
           
 
Method Summary
static boolean isAscii(java.lang.String str)
          Returns true, iff, the given string contains only ascii characters, that is, characters in the range 1..127, inclusive.
static double[] toDoubles(float[] floats)
          Converts a float array to a double array.
static float[] toFloats(double[] doubles)
          Converts a double array to a float array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

toFloats

public static float[] toFloats(double[] doubles)
Converts a double array to a float array.

Version:
This function is available in all versions.
Parameters:
doubles - The array to convert.

toDoubles

public static double[] toDoubles(float[] floats)
Converts a float array to a double array.

Version:
This function is available in all versions.
Parameters:
floats - The array to convert.

isAscii

public static boolean isAscii(java.lang.String str)
Returns true, iff, the given string contains only ascii characters, that is, characters in the range 1..127, inclusive.

Version:
Since 2.11
Parameters:
String - the string to test