Object

com.astrolabsoftware.spark3d.utils

Utils

Related Doc: package utils

Permalink

object Utils

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Utils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def cartesianToSpherical(p: Point3D): Point3D

    Permalink

    Convert a Point3D with cartesian coordinates in a Point3D with spherical coordinates.

    Convert a Point3D with cartesian coordinates in a Point3D with spherical coordinates.

    p

    : (Point3D) Input Point3D with cartesian coordinates.

    returns

    (Point3D) The same point but with spherical coordinates.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def dec2theta(dec: Double, inputInRadian: Boolean = false): Double

    Permalink

    Convert declination into theta

    Convert declination into theta

    dec

    : (Double) declination coordinate in degree

    inputInRadian

    : (Boolean) If true, assume the input is in radian. Otherwise make the conversion deg2rad. Default is false.

    returns

    (Double) theta coordinate in radian

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getSampleSize(totalNumRecords: Long, numPartitions: Int): Int

    Permalink

    Get sample size to be taken from the RDD.

    Get sample size to be taken from the RDD. This is required in order to avoid the drive Out of Memory (OOM) when the the data size in itself is very large. The min 5000 totalNumRecords bound is added in order to ensure a sufficiently deep Octree construction.

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def ra2phi(ra: Double, inputInRadian: Boolean = false): Double

    Permalink

    Convert right ascension into phi

    Convert right ascension into phi

    ra

    : (Double) RA coordinate in degree

    inputInRadian

    : (Boolean) If true, assume the input is in radian. Otherwise make the conversion deg2rad. Default is false.

    returns

    (Double) phi coordinate in radian

  19. def sphericalToCartesian(p: Point3D): Point3D

    Permalink

    Convert a Point3D with spherical coordinates in a Point3D with cartesian coordinates.

    Convert a Point3D with spherical coordinates in a Point3D with cartesian coordinates.

    p

    : (Point3D) Input Point3D with spherical coordinates.

    returns

    (Point3D) The same point but with cartesian coordinates.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def takeOrdered[T <: Shape3D](rdd: RDD[T], num: Int, queryObject: T, unique: Boolean = false)(ord: Ordering[T])(implicit arg0: ClassTag[T]): Array[T]

    Permalink

    Custom takeOrdered function to take unique top k elements from the RDD based on the priority of the elements relative to the queryObject defined by the custom Ordering.

    Custom takeOrdered function to take unique top k elements from the RDD based on the priority of the elements relative to the queryObject defined by the custom Ordering. In case, the unique elements are not needed, fallback to using the RDD's takeOrdered function.

    rdd

    RDD from which the elements are to be taken

    num

    number of elements to be taken from the RDD

    queryObject

    elements relative to which the priority is to be defined

    unique

    true/false based on whether unique elements should be returned or not

    ord

    custom Ordering based on which the top k elements are to be taken

    returns

    array of top k elements based on the Ordering relative to the queryObject from the input RDD

  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped