public class NeocognitronStructure
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
double |
alpha |
double[][] |
c |
int[] |
cLayerSizes |
int[] |
cWindowSize |
double[][] |
d |
int |
inputLayerSize |
int[] |
numCPlanes |
int |
numLayers |
int[] |
numSPlanes |
double[] |
q |
double[] |
r |
int[] |
sColumnSize |
int[] |
sLayerSizes |
int[] |
sWindowSize |
Constructor and Description |
---|
NeocognitronStructure()
Initialize the NeocognitronStructure.
|
Modifier and Type | Method and Description |
---|---|
static double |
arrayMultiply(double[] a,
double[] b)
A static function which allows two arrays to be multiplied
together.
|
void |
generateC()
Initializes C using gamma.
|
void |
generateD()
Initializes D using delta and delta bar.
|
double[] |
generateMonotonic(double base,
int size,
int planes,
boolean norm)
Generate a monotonically decreasing two dimensional function.
|
double[] |
getC(int layer)
Get the c weights for a specific layer
|
double |
getR(int layer)
Get the r value for a specific layer
|
static double[][] |
readImage(java.io.File file)
Reads a specific monochromatic image and returns a two dimensional
representation of the image.
|
public int inputLayerSize
public int numLayers
public int[] numSPlanes
public int[] numCPlanes
public int[] sLayerSizes
public int[] cLayerSizes
public int[] sWindowSize
public int[] cWindowSize
public int[] sColumnSize
public double[] r
public double[][] c
public double[][] d
public double[] q
public double alpha
public NeocognitronStructure()
public void generateC()
public void generateD()
public double[] generateMonotonic(double base, int size, int planes, boolean norm)
base
- Base value for functionsize
- Size of window usedplanes
- Number of planes, used for normalizingnorm
- Normalize the output to have a sumation of 1public double[] getC(int layer)
layer
- The layer.public double getR(int layer)
layer
- The layer.public static double arrayMultiply(double[] a, double[] b)
a
- Input vector ab
- Input vector bpublic static double[][] readImage(java.io.File file) throws java.io.IOException
file
- Input filejava.io.IOException