public class Kernel extends Object implements Serializable
Constructor and Description |
---|
Kernel(Dimension2D dimension)
Creates new kernel with specified width and height
|
Kernel(int width,
int height)
Creates new kernel with specified width and height
|
Modifier and Type | Method and Description |
---|---|
int |
getArea()
Returns area of this kernel (width*height)
|
int |
getHeight()
Returns height of this kernel
|
Weight[][] |
getWeights() |
int |
getWidth()
Returns width of this kernel
|
void |
initWeights(double min,
double max) |
void |
setHeight(int height)
Sets height of this kernel
|
void |
setWeights(Weight[][] weights) |
void |
setWidth(int width)
Sets width of this kernel
|
public Kernel(Dimension2D dimension)
width
- kernel widthheight
- kernel heightpublic Kernel(int width, int height)
width
- kernel widthheight
- kernel heightpublic int getWidth()
public void setWidth(int width)
width
- kernel widthpublic int getHeight()
public void setHeight(int height)
height
- kernel heightpublic int getArea()
public Weight[][] getWeights()
public void setWeights(Weight[][] weights)
public void initWeights(double min, double max)
Copyright © 2019 Neuroph Project. All rights reserved.