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:
5.04 - January 21, 2012

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
 

Method Detail

public static boolean isAscii (
 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

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.

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.