Class BrightestStarsSimple

    • Constructor Summary

      Constructors 
      Constructor Description
      BrightestStarsSimple​(int maxPart)
      Constructor using fields
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDiscarded()
      Returns the number of discarded stars by this algorithm so far.
      int getMaxDepth()
      Returns the max depth setting.
      int getMaxPart()
      Gets the maximum number of particles in a single node
      boolean sample​(com.badlogic.gdx.utils.Array<StarGroup.StarBean> inputStars, OctreeNode octant, float percentage)
      Creates the sub-sample from the given input stars.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BrightestStarsSimple

        public BrightestStarsSimple​(int maxPart)
        Constructor using fields
        Parameters:
        maxPart - Number of objects in the densest node of this level
    • Method Detail

      • sample

        public boolean sample​(com.badlogic.gdx.utils.Array<StarGroup.StarBean> inputStars,
                              OctreeNode octant,
                              float percentage)
        Description copied from interface: IAggregationAlgorithm
        Creates the sub-sample from the given input stars. All these stars should be in the box defined by the center and the sizes.
        Specified by:
        sample in interface IAggregationAlgorithm
        Parameters:
        inputStars - The actual stars that are inside the octant.
        octant - The octant that characterizes the box with its center, size and depth well set.
        percentage - The percentage of objects to be included in the octant.
        Returns:
        True if we are in a leaf.