Documentation of 'org.neuroph.nnet.comp.layer.FeatureMapsLayer' Java class
FeatureMapsLayer
org.neuroph.nnet.comp.layer

Class FeatureMapsLayer

    • Constructor Detail

      • FeatureMapsLayer

        public FeatureMapsLayer()
        Creates a new empty feature maps layer with specified kernel
        Parameters:
        kernel - kernel to use for all feature maps
      • FeatureMapsLayer

        public FeatureMapsLayer(Dimension2D mapDimensions)
        Creates a new empty feature maps layer with specified kernel and feature map dimensions.
        Parameters:
        kernel - kernel used for all feature maps in this layer
        mapDimensions - mapDimensions of feature maps in this layer
      • FeatureMapsLayer

        public FeatureMapsLayer(Dimension2D kernelDimension,
                                Dimension2D mapDimensions,
                                int mapCount,
                                NeuronProperties neuronProp)
        Creates new feature maps layer with specified kernel and feature maps. Also creates feature maps and neurons in feature maps;
        Parameters:
        kernel - kernel used for all feature maps in this layer
        mapDimensions - mapDimensions of feature maps in this layer
        mapCount - number of feature maps
        neuronProp - properties for neurons in feature maps
    • Method Detail

      • addFeatureMap

        public void addFeatureMap(FeatureMapLayer featureMap)
        Adds a feature map (2d layer) to this feature map layer
        Parameters:
        featureMap - feature map to add
      • getFeatureMap

        public FeatureMapLayer getFeatureMap(int index)
        Returns feature map (Layer2D) at specified index
        Parameters:
        index - index of feature map
        Returns:
        feature map (Layer2D instance) at specified index
      • getNumberOfMaps

        public int getNumberOfMaps()
        Returns number of feature maps in this layer
        Returns:
        number of feature maps in this layer
      • getNeuronAt

        public Neuron getNeuronAt(int x,
                                  int y,
                                  int mapIndex)
        Returns neuron instance at specified (x, y) position at specified feature map layer
        Parameters:
        x - neuron's x position
        y - neuron's y position
        mapIndex - feature map index
        Returns:
        neuron at specified (x, y, map) position
      • getNeuronsCount

        public int getNeuronsCount()
        Returns total number of neurons in all feature maps
        Overrides:
        getNeuronsCount in class Layer
        Returns:
        total number of neurons in all feature maps
      • getMapDimensions

        public Dimension2D getMapDimensions()
        Returns dimensions of feature maps in this layer
        Returns:
        dimensions of feature maps in this layer
      • connectMaps

        public abstract void connectMaps(FeatureMapLayer fromMap,
                                         FeatureMapLayer toMap)
        Creates connections between two feature maps. It does nothing here, connectivity patterns are defined by subclasses... Maybe it should be even removed from here or made abstract......
        Parameters:
        fromMap -
        toMap -

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.