certaintyOffunction
The certainty of a parallax known to a relative error (the error over the parallax): good under 5%, fair up to 20%, rough over it. With no error stated it is rough.
Import it
import { certaintyOf } from "@johnmorrisdotca/hoshi-stars/distance";
Definition
function certaintyOf(relativeError: number | undefined): Certainty
Parameters
| Name | Type | Description |
|---|---|---|
relativeError | number | undefined | The parallax's error divided by the parallax, or |
Returns
Certainty
The certainty.
Examples
import { certaintyOf } from "@johnmorrisdotca/hoshi-stars/distance";
console.log(certaintyOf(0.01), certaintyOf(0.1), certaintyOf(0.5), certaintyOf(undefined));good fair rough roughWhat it prints (run when this page was built)