Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "datasets/herndon-venus-semidiameters/docs/types/index.d"

Index

Functions

Functions

data

  • data(): Array<number>
  • Returns fifteen observations of the vertical semidiameter of Venus, made by Lieutenant Herndon, with the meridian circle at Washington, in the year 1846.

    Notes

    • This function synchronously reads data from disk for each invocation. Such behavior is intentional and so is the avoidance of require. We assume that invocations are infrequent, and we want to avoid the require cache. This means that we allow data to be garbage collected and a user is responsible for explicitly caching data.
    throws

    unable to read data

    Returns Array < number >

    data

    Example

    var d = data();
    // returns [ -0.30, -0.44, ..., 0.39, 0.10 ]