Package io.github.kirstenali.deepj.nn
Record Class Window2D
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.nn.Window2D
public record Window2D(int height, int width, int strideHeight, int strideWidth, int paddingHeight, int paddingWidth, int dilationHeight, int dilationWidth)
extends Record
Floor-mode spatial window with symmetric zero padding and optional dilation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintarea()intReturns the value of thedilationHeightrecord component.intReturns the value of thedilationWidthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intoutputHeight(int input) intoutputWidth(int input) intReturns the value of thepaddingHeightrecord component.intReturns the value of thepaddingWidthrecord component.intReturns the value of thestrideHeightrecord component.intReturns the value of thestrideWidthrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Window2D
public Window2D(int height, int width) -
Window2D
public Window2D(int height, int width, int strideHeight, int strideWidth, int paddingHeight, int paddingWidth, int dilationHeight, int dilationWidth) Creates an instance of aWindow2Drecord class.- Parameters:
height- the value for theheightrecord componentwidth- the value for thewidthrecord componentstrideHeight- the value for thestrideHeightrecord componentstrideWidth- the value for thestrideWidthrecord componentpaddingHeight- the value for thepaddingHeightrecord componentpaddingWidth- the value for thepaddingWidthrecord componentdilationHeight- the value for thedilationHeightrecord componentdilationWidth- the value for thedilationWidthrecord component
-
-
Method Details
-
outputHeight
public int outputHeight(int input) -
outputWidth
public int outputWidth(int input) -
area
public int area() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
strideHeight
public int strideHeight()Returns the value of thestrideHeightrecord component.- Returns:
- the value of the
strideHeightrecord component
-
strideWidth
public int strideWidth()Returns the value of thestrideWidthrecord component.- Returns:
- the value of the
strideWidthrecord component
-
paddingHeight
public int paddingHeight()Returns the value of thepaddingHeightrecord component.- Returns:
- the value of the
paddingHeightrecord component
-
paddingWidth
public int paddingWidth()Returns the value of thepaddingWidthrecord component.- Returns:
- the value of the
paddingWidthrecord component
-
dilationHeight
public int dilationHeight()Returns the value of thedilationHeightrecord component.- Returns:
- the value of the
dilationHeightrecord component
-
dilationWidth
public int dilationWidth()Returns the value of thedilationWidthrecord component.- Returns:
- the value of the
dilationWidthrecord component
-