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
Version:
2.21 - May 7, 2002

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..255, 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.

Parameters:
double[]    doubles    The array to convert.

Version:
This method is available in all versions.

toDoubles

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

Parameters:
float[]    floats    The array to convert.

Version:
This method is available in all versions.

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..255, inclusive.

Parameters:
str    String    the string to test

Version:
Since 2.11