|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.marmoush.jann.Layer
public class Layer
The Class Layer.
Constructor Summary | |
---|---|
Layer()
Instantiates a new layer. |
|
Layer(int nInputs,
int nNeurons,
boolean biased)
Instantiates a new layer. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Equals. |
DoubleMatrix |
getBias()
Gets the bias. |
DoubleMatrix |
getInput()
Gets the input. |
DoubleMatrix |
getNetSum()
Gets the net sum. |
DoubleMatrix |
getOutput()
Gets the output. |
double |
getTheta()
Gets the theta. |
ITransfere |
getTransfereFnctr()
Gets the transfere fnctr. |
DoubleMatrix |
getWeight()
Gets the weight. |
IWeight |
getWeightFnctr()
Gets the weight fnctr. |
int |
hashCode()
Hash code. |
boolean |
isBiased()
|
boolean |
isInputOnlyLayer()
Checks if is input only layer. |
void |
setBias(DoubleMatrix bias)
Sets the bias. |
void |
setBiased(boolean biased)
|
void |
setFill(double value,
DoubleMatrix... matrices)
Sets the fill. |
void |
setFillRandom(DoubleMatrix... matrices)
Sets the fill random. |
void |
setFillRandomFloor(DoubleMatrix... matrices)
Sets the fill random floor. |
void |
setFillRandomMinMax(double min,
double max,
DoubleMatrix... matrices)
Sets the fill random min max. |
void |
setFillRandomMinMaxFloor(int min,
int max,
DoubleMatrix... matrices)
Sets the fill random min max floor. |
void |
setInput(DoubleMatrix input)
Sets the input. |
void |
setInputOnlyLayer(boolean inputOnlyLayer)
|
void |
setNetSum(DoubleMatrix netsum)
Sets the net sum. |
void |
setOutput(DoubleMatrix output)
Sets the output. |
void |
setTheta(double theta)
Sets the theta. |
void |
setTransfereFnctr(ITransfere transfereFnctr)
Sets the transfere fnctr. |
void |
setWeight(DoubleMatrix weight)
Sets the weight. |
void |
setWeightFnctr(IWeight weightFnctr)
Sets the weight fnctr. |
void |
simulate()
Simulate. |
String |
toString()
To string. |
DoubleMatrix |
updateNetSum()
Update net sum. |
DoubleMatrix |
updateOutput()
Update output. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Layer()
public Layer(int nInputs, int nNeurons, boolean biased)
nInputs
- the n inputsnNeurons
- the n neuronsMethod Detail |
---|
public boolean equals(Object obj)
ILayer
equals
in interface ILayer
equals
in class Object
obj
- the obj
public DoubleMatrix getBias()
ILayer
getBias
in interface ILayer
public DoubleMatrix getInput()
ILayer
getInput
in interface ILayer
public DoubleMatrix getNetSum()
ILayer
getNetSum
in interface ILayer
public DoubleMatrix getOutput()
ILayer
getOutput
in interface ILayer
public double getTheta()
ILayer
getTheta
in interface ILayer
public ITransfere getTransfereFnctr()
ILayer
getTransfereFnctr
in interface ILayer
public DoubleMatrix getWeight()
ILayer
getWeight
in interface ILayer
public IWeight getWeightFnctr()
ILayer
getWeightFnctr
in interface ILayer
public int hashCode()
ILayer
hashCode
in interface ILayer
hashCode
in class Object
public boolean isBiased()
isBiased
in interface ILayer
public boolean isInputOnlyLayer()
ILayer
isInputOnlyLayer
in interface ILayer
public void setBias(DoubleMatrix bias)
ILayer
setBias
in interface ILayer
bias
- the new biaspublic void setBiased(boolean biased)
public void setFill(double value, DoubleMatrix... matrices)
IFillableLayer
setFill
in interface IFillableLayer
setFill
in interface ILayer
value
- the valuematrices
- the matricespublic void setFillRandom(DoubleMatrix... matrices)
IFillableLayer
setFillRandom
in interface IFillableLayer
setFillRandom
in interface ILayer
matrices
- the new fill randompublic void setFillRandomFloor(DoubleMatrix... matrices)
IFillableLayer
setFillRandomFloor
in interface IFillableLayer
matrices
- the new fill random floorpublic void setFillRandomMinMax(double min, double max, DoubleMatrix... matrices)
IFillableLayer
setFillRandomMinMax
in interface IFillableLayer
min
- the minmax
- the maxmatrices
- the matricespublic void setFillRandomMinMaxFloor(int min, int max, DoubleMatrix... matrices)
IFillableLayer
setFillRandomMinMaxFloor
in interface IFillableLayer
min
- the minmax
- the maxmatrices
- the matricespublic void setInput(DoubleMatrix input)
ILayer
setInput
in interface ILayer
input
- the new inputpublic void setInputOnlyLayer(boolean inputOnlyLayer)
public void setNetSum(DoubleMatrix netsum)
ILayer
setNetSum
in interface ILayer
netsum
- the new net sumpublic void setOutput(DoubleMatrix output)
ILayer
setOutput
in interface ILayer
output
- the new outputpublic void setTheta(double theta)
ILayer
setTheta
in interface ILayer
theta
- the new thetapublic void setTransfereFnctr(ITransfere transfereFnctr)
ILayer
setTransfereFnctr
in interface ILayer
transfereFnctr
- the new transfere fnctrpublic void setWeight(DoubleMatrix weight)
ILayer
setWeight
in interface ILayer
weight
- the new weightpublic void setWeightFnctr(IWeight weightFnctr)
ILayer
setWeightFnctr
in interface ILayer
weightFnctr
- the new weight fnctrpublic void simulate()
ILayer
simulate
in interface ILayer
public String toString()
ILayer
toString
in interface ILayer
toString
in class Object
public DoubleMatrix updateNetSum()
ILayer
updateNetSum
in interface ILayer
public DoubleMatrix updateOutput()
ILayer
updateOutput
in interface ILayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |