public interface NeuralNet
| Modifier and Type | Method and Description |
|---|---|
double[] |
compute(double[] input)
Performs computations for this network.
|
Layer |
getInputLayer()
Returns the input layer of this network.
|
Set<Link> |
getInputLinks(Layer layer)
Returns input links of the specified layer.
|
int |
getInputSize()
Returns the size of the input layer.
|
int |
getLayerCount()
Returns the number of all layers in this network.
|
Set<Layer> |
getLayers()
Returns a set of all layers in this network.
|
Set<Link> |
getLinks()
Returns a set of all links in this network.
|
Link |
getOneInputLink(Layer layer)
Returns one of input links of the specified layer.
|
Link |
getOneOutputLink(Layer layer)
Returns one of output links of the specified layer.
|
Layer |
getOutputLayer()
Returns the output layer of this network.
|
Set<Link> |
getOutputLinks(Layer layer)
Returns output links of the specified layer.
|
int |
getOutputSize()
Returns the size of the output layer.
|
boolean |
hasInputLinks(Layer layer)
Returns
true if the specified layer has at least one input link. |
boolean |
hasOutputLinks(Layer layer)
Returns
true if the specified layer has at least one output
link. |
double[] compute(double[] input)
input - The input vector. Cannot be null. The size of the vector
must be equal to the size of the input layer.int getInputSize()
int getOutputSize()
Layer getInputLayer()
Layer getOutputLayer()
boolean hasInputLinks(Layer layer)
true if the specified layer has at least one input link.layer - the examinated layer. Cannot be null.true - if specified layer has at least one input linkfalse - if specified layer has no input links, doesn't
belong to this networkboolean hasOutputLinks(Layer layer)
true if the specified layer has at least one output
link.layer - the examinated layer. Cannot be null.true - if specified layer has at least one output linkfalse - if specified layer has no input links or doesn't
belong to this networkSet<Link> getInputLinks(Layer layer)
layer - the examinated layer. Cannot be null.Link getOneInputLink(Layer layer)
null is returned.
layer - the examinated layer. Cannot be null.null - if the layer has no input links or doesn't belong
to this network Set<Link> getOutputLinks(Layer layer)
layer - the layer. Cannot be null.Link getOneOutputLink(Layer layer)
null is returned.
layer - the layer. Cannot be null.null - if the layer has no output links or doesn't belong
to this network Set<Layer> getLayers()
Set<Link> getLinks()
int getLayerCount()
Copyright © 2012. All Rights Reserved.