SymLog

org.appliedtopology.tda4j.plot.Transform.SymLog
final case class SymLog(linear: Double)

Logarithmic away from zero, linear within linear of it: sign(v) * log10(1 + |v| / linear). Keeps zero and negative values on a log-like axis. linear is the size of the linear stretch around zero, in data units.

Attributes

Source
Transform.scala

Members list

Value members

Inherited methods

def apply(v: Double): Double

The position of v, or NaN when v has none.

The position of v, or NaN when v has none.

Attributes

Inherited from:
Transform
Source
Transform.scala
def floor: Double

The lowest position for data that are not negative (zero on a square-root axis): an axis that widens its range to keep an aspect ratio stops a margin below it, unless it has a negative value.

The lowest position for data that are not negative (zero on a square-root axis): an axis that widens its range to keep an aspect ratio stops a margin below it, unless it has a negative value.

Attributes

Inherited from:
Transform
Source
Transform.scala
def inverse(u: Double): Double

The value at position u: inverse(apply(v)) == v wherever apply(v) is a number.

The value at position u: inverse(apply(v)) == v wherever apply(v) is a number.

Attributes

Inherited from:
Transform
Source
Transform.scala
def label: String

A word for the axis note: "log", "square-root".

A word for the axis note: "log", "square-root".

Attributes

Inherited from:
Transform
Source
Transform.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
def tickLabel(v: Double): String

The label of a tick at v: plain numbers, except on a log axis where 1e-4 and 2e6 read better than a long decimal or 1.00e-04.

The label of a tick at v: plain numbers, except on a log axis where 1e-4 and 2e6 read better than a long decimal or 1.00e-04.

Attributes

Inherited from:
Transform
Source
Transform.scala
def ticks(lo: Double, hi: Double, target: Int = ...): IndexedSeq[Double]

About target round tick values inside [lo, hi] (data units): 1, 2, 5 times a power of ten for a linear or square-root axis, powers of ten (with 2 and 5 between when there are few decades) for a log axis, and for a symmetric log axis zero and those on both sides (round numbers throughout when the range is within a decade of the linear stretch).

About target round tick values inside [lo, hi] (data units): 1, 2, 5 times a power of ten for a linear or square-root axis, powers of ten (with 2 and 5 between when there are few decades) for a log axis, and for a symmetric log axis zero and those on both sides (round numbers throughout when the range is within a decade of the linear stretch).

Attributes

Inherited from:
Transform
Source
Transform.scala