public class OutputConnections
extends java.lang.Object
Constructor and Description |
---|
OutputConnections(int initK,
int initSize)
Initialize the connection's, for a set number of planes with a set size,
to zero.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
arrayToString(double[] a)
Convert an array to a string.
|
static java.lang.String |
arrayToString(double[][] a)
Convert a two dimensional array to a string.
|
static Location |
getLocationOfMax(double[][][] sColumn,
java.awt.Point center,
int windowSize)
For a given s-column, determine the location of the maximum output value.
|
java.awt.Point |
getMaxPerPlane(int plane,
java.util.List<Location> l)
Given a list of possible representative cells, and a desired plane, determine the location
of the maximum point.
|
double[][] |
getPlane(int k)
Get an entire planes output matrix.
|
double[] |
getPointsOnPlanes(int n,
int m)
Get an array of a certain point (n,m) in every plane.
|
java.awt.Point[] |
getRepresentativeCells(int windowSize)
Get the list of representative cells for this specific set ofoutputs.
|
double |
getSingleOutput(int k,
int n,
int m)
Get a specific output for a given location, plane k, and point (n,m).
|
double |
getSingleOutput(Location l)
Get a specific output for a given location.
|
double[][] |
getSquareWindowInPlane(int k,
int n,
int m,
int windowSize)
For a specific location and window size, return the resulting window
as a two dimensional array.
|
double[][][] |
getSquareWindows(int n,
int m,
int windowSize)
Get array of two dimensional window matrices for a specific point in each
plane and a given window size.
|
double[] |
getWindowInPlane(int k,
int n,
int m,
int windowSize)
For a specific location and window size, return the resulting window
as a single dimensional array.
|
double[][] |
getWindows(int n,
int m,
int windowSize)
Get array of windows for a specific point in each plane and a given window
size.
|
void |
setPlaneOutput(int kValue,
double[][] newOutputs)
Set an entire plane's output matrix
|
void |
setSingleOutput(int k,
int n,
int m,
double value)
Set a single output value.
|
double[][][] |
toArray()
Convert entire OutputConnections to a three dimensional array.
|
java.lang.String |
toString() |
public OutputConnections(int initK, int initSize)
initK
- Number of planes in the specific layerinitSize
- Size for all planes. Each plane is square and the same sizepublic void setPlaneOutput(int kValue, double[][] newOutputs)
kValue
- Plane locationnewOutputs
- Output matrixpublic void setSingleOutput(int k, int n, int m, double value)
k
- Plane locationn
- Matrix location (1st dimension)m
- Matrix location (2nd dimension)value
- Value to set outputpublic double[][] getPlane(int k)
k
- Plane locationpublic double[] getPointsOnPlanes(int n, int m)
n
- Matrix location (1st dimension)m
- Matrix location (2nd dimension)public double[] getWindowInPlane(int k, int n, int m, int windowSize)
k
- plane location kn
- location nm
- location mwindowSize
- size of the square windowpublic double[][] getWindows(int n, int m, int windowSize)
n
- location nm
- location mwindowSize
- size of the square windowpublic double[][] getSquareWindowInPlane(int k, int n, int m, int windowSize)
k
- plane location kn
- location nm
- location mwindowSize
- size of the square windowpublic double[][][] getSquareWindows(int n, int m, int windowSize)
n
- location nm
- location mwindowSize
- size of the square windowpublic double getSingleOutput(Location l)
l
- Location for determining the outputpublic double getSingleOutput(int k, int n, int m)
k
- Plane kn
- location nm
- location mpublic static Location getLocationOfMax(double[][][] sColumn, java.awt.Point center, int windowSize)
sColumn
- three dimensional s-column arraycenter
- center location of the columnwindowSize
- window size used to generate the s-columnpublic java.awt.Point getMaxPerPlane(int plane, java.util.List<Location> l)
plane
- Plane under testl
- list of locations for possible representative cellspublic java.awt.Point[] getRepresentativeCells(int windowSize)
windowSize
- window size used to generate the s-columnpublic double[][][] toArray()
public static java.lang.String arrayToString(double[] a)
a
- Array to be convertedpublic static java.lang.String arrayToString(double[][] a)
a
- Array to be convertedpublic java.lang.String toString()
toString
in class java.lang.Object