Documentation of 'org.ea.javacnn.data.DataBlock' Java class
DataBlock
org.ea.javacnn.data

Class DataBlock

  • All Implemented Interfaces:
    java.io.Serializable


    public class DataBlock
    extends java.lang.Object
    implements java.io.Serializable
    Holding all the data handled by the network. So a layer will receive this class and return a similar block as a output that will be used by the next layer in the chain.
    See Also:
    Serialized Form
    • Constructor Detail

      • DataBlock

        public DataBlock(int sx,
                         int sy,
                         int depth)
      • DataBlock

        public DataBlock(int sx,
                         int sy,
                         int depth,
                         double c)
    • Method Detail

      • addImageData

        public void addImageData(int[] imgData,
                                 int maxvalue)
      • getSX

        public int getSX()
      • getSY

        public int getSY()
      • getDepth

        public int getDepth()
      • getWeight

        public double getWeight(int ix)
      • getWeight

        public double getWeight(int x,
                                int y,
                                int depth)
      • setWeight

        public void setWeight(int ix,
                              double val)
      • setWeight

        public void setWeight(int x,
                              int y,
                              int depth,
                              double val)
      • addWeight

        public void addWeight(int x,
                              int y,
                              int depth,
                              double val)
      • getGradient

        public double getGradient(int x,
                                  int y,
                                  int depth)
      • getGradient

        public double getGradient(int ix)
      • setGradient

        public void setGradient(int x,
                                int y,
                                int depth,
                                double val)
      • setGradient

        public void setGradient(int ix,
                                double val)
      • addGradient

        public void addGradient(int x,
                                int y,
                                int depth,
                                double val)
      • addGradient

        public void addGradient(int ix,
                                double val)
      • subGradient

        public void subGradient(int ix,
                                double val)
      • mulGradient

        public void mulGradient(int ix,
                                double val)
      • cloneAndZero

        public DataBlock cloneAndZero()
      • clone

        public DataBlock clone()
        Overrides:
        clone in class java.lang.Object
      • clearGradient

        public void clearGradient()
      • getWeights

        public double[] getWeights()
      • getGradients

        public double[] getGradients()
      • addFrom

        public void addFrom(DataBlock db)
      • addFromScaled

        public void addFromScaled(DataBlock db,
                                  double a)
      • setConst

        public void setConst(double a)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.