Package

it.unibo.scafi.space.optimization

nn

Permalink

package nn

Visibility
  1. Public
  2. All

Type Members

  1. trait NNIndex[A] extends AnyRef

    Permalink

    a data structure used to search the neighbour you can add elements like map structure:

    @{code
      val index[Int] = NNIndex(Map.empty)
      index += Point3D -> 0
    
      val elems = (0 to 100) map {x => Point3D(math.random,math.random,math.random) -> x}
    
      index ++= elems
    }
    
    you can find neighbours using in this way:
    @{code
      val radiusSearch = 10
      val neighbour = index.neighbours(Point3D(0,0,0),radiusSearch)
    }
    

    a data structure used to search the neighbour you can add elements like map structure:

    @{code
      val index[Int] = NNIndex(Map.empty)
      index += Point3D -> 0
    
      val elems = (0 to 100) map {x => Point3D(math.random,math.random,math.random) -> x}
    
      index ++= elems
    }
    
    you can find neighbours using in this way:
    @{code
      val radiusSearch = 10
      val neighbour = index.neighbours(Point3D(0,0,0),radiusSearch)
    }
    

    A

    the value ok key

Value Members

  1. object NNIndex

    Permalink
  2. object QuadTree

    Permalink

Ungrouped