T
- weight training datapublic class Weight<T> extends Object implements Serializable, Cloneable
Connection
,
Serialized FormModifier and Type | Field and Description |
---|---|
double |
value
Weight value
|
double |
weightChange
Weight change
|
Constructor and Description |
---|
Weight()
Creates an instance of connection weight with random weight value in
range [-0.5 ..
|
Weight(double value)
Creates an instance of connection weight with the specified weight value
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns cloned instance of this weight
Important: trainingData will be lost in cloned instance
|
void |
dec(double amount)
Decreases the weight for specified amount
|
boolean |
equals(Object obj) |
T |
getTrainingData()
Returns training data buffer for this weight
|
double |
getValue()
Returns weight value
|
int |
hashCode() |
void |
inc(double amount)
Increases the weight for the specified amount
|
void |
randomize(double min,
double max)
Deprecated.
|
void |
setTrainingData(T trainingData) |
void |
setValue(double value)
Sets the weight value
|
String |
toString()
Returns weight value as String
|
public double value
public transient double weightChange
public Weight()
public Weight(double value)
value
- weight valuepublic final void inc(double amount)
amount
- amount to add to current weight valuepublic final void dec(double amount)
amount
- amount to subtract from the current weight valuepublic final void setValue(double value)
value
- weight value to setpublic final double getValue()
public String toString()
@Deprecated public void randomize(double min, double max)
public final T getTrainingData()
public final void setTrainingData(T trainingData)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2019 Neuroph Project. All rights reserved.