saaps.ann
Class Weights

java.lang.Object
  |
  +--saaps.ann.Weights

public class Weights
extends java.lang.Object

Version:
 
Author:
saaps

Field Summary
private  double bias
           
private  double[] weights
           
 
Constructor Summary
Weights()
          Creates new Weights
Weights(double[] w, double b)
           
Weights(int n)
           
 
Method Summary
 double getBias()
           
 int getLength()
           
 double[] getWeights()
           
 void print()
           
 void randomize(double min, double max)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

weights

private double[] weights

bias

private double bias
Constructor Detail

Weights

public Weights()
Creates new Weights

Weights

public Weights(int n)

Weights

public Weights(double[] w,
               double b)
Method Detail

randomize

public void randomize(double min,
                      double max)

getLength

public int getLength()

getWeights

public double[] getWeights()

getBias

public double getBias()

print

public void print()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object