org.neuroph.nnet.comp
Class Kernel
- java.lang.Object
-
- org.neuroph.nnet.comp.Kernel
-
- All Implemented Interfaces:
- java.io.Serializable
public class Kernel extends java.lang.Object implements java.io.SerializableKernel used in convolution networks. Kernel is (width x height) window sliding over 2D input space. Each window position provides (width x height) inputs for the neurons in next layer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Kernel(Dimension2D dimension)Creates new kernel with specified width and heightKernel(int width, int height)Creates new kernel with specified width and height
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetArea()Returns area of this kernel (width*height)intgetHeight()Returns height of this kernelWeight[][]getWeights()intgetWidth()Returns width of this kernelvoidinitWeights(double min, double max)voidsetHeight(int height)Sets height of this kernelvoidsetWeights(Weight[][] weights)voidsetWidth(int width)Sets width of this kernel
-
-
-
Constructor Detail
-
Kernel
public Kernel(Dimension2D dimension)
Creates new kernel with specified width and height- Parameters:
width- kernel widthheight- kernel height
-
Kernel
public Kernel(int width, int height)Creates new kernel with specified width and height- Parameters:
width- kernel widthheight- kernel height
-
-
Method Detail
-
getWidth
public int getWidth()
Returns width of this kernel- Returns:
- width of this kernel
-
setWidth
public void setWidth(int width)
Sets width of this kernel- Parameters:
width- kernel width
-
getHeight
public int getHeight()
Returns height of this kernel- Returns:
- height of this kernel
-
setHeight
public void setHeight(int height)
Sets height of this kernel- Parameters:
height- kernel height
-
getArea
public int getArea()
Returns area of this kernel (width*height)- Returns:
- area of this kernel
-
getWeights
public Weight[][] getWeights()
-
setWeights
public void setWeights(Weight[][] weights)
-
initWeights
public void initWeights(double min, double max)
-
-
DMelt 3.0 © DataMelt by jWork.ORG