public class Utilities
extends java.lang.Object
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static Link |
cloneLink(Link link,
Neuron so,
Neuron si,
double w)
Clones a given link and connects it with the given
parameters.
|
static java.lang.String |
getClassName(java.lang.Object o)
Returns the unqualified class name, i.e., with all package names dropped.
|
static int |
getDigits(int base,
int value)
Calculate the minimal number of digits needed to represent the value in the given
number base.
|
static java.util.List<Neuron> |
getTopologicalSort(NeuralNet net)
Returns a sorted list of all neurons of a network in the order input-hidden-output.
|
public static java.lang.String getClassName(java.lang.Object o)
public static java.util.List<Neuron> getTopologicalSort(NeuralNet net)
net
- a networkpublic static Link cloneLink(Link link, Neuron so, Neuron si, double w)
link
- a linkso
- a source neuronsi
- a sink neuronw
- the link's weightpublic static int getDigits(int base, int value)
base
- a base > 1value
- a value > 0