|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.Weight
public class Weight
Neuron connection weight.
Connection
,
Serialized FormField Summary | |
---|---|
double |
value
Weight value |
double |
weightChange
Weight change |
Constructor Summary | |
---|---|
Weight()
Creates an instance of connection weight with random weight value in range [0..1] |
|
Weight(double value)
Creates an instance of connection weight with the specified weight value |
Method Summary | |
---|---|
void |
dec(double amount)
Decreases the weight for specified amount |
Object |
getTrainingData()
Returns training data buffer for this weight |
double |
getValue()
Returns weight value |
void |
inc(double amount)
Increases the weight for the specified amount |
void |
randomize()
Sets random weight value |
void |
randomize(double min,
double max)
Sets random weight value within specified interval |
void |
randomize(Random generator)
|
void |
setTrainingData(Object trainingData)
|
void |
setValue(double value)
Sets the weight value |
String |
toString()
Returns weight value as String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double value
public transient double weightChange
Constructor Detail |
---|
public Weight()
public Weight(double value)
value
- weight valueMethod Detail |
---|
public void inc(double amount)
amount
- amount to add to current weight valuepublic void dec(double amount)
amount
- amount to subtract from the current weight valuepublic void setValue(double value)
value
- weight value to setpublic double getValue()
public String toString()
toString
in class Object
public void randomize()
public void randomize(double min, double max)
public void randomize(Random generator)
public Object getTrainingData()
public void setTrainingData(Object trainingData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |