Samples

it.grypho.scala.leonardo.cli.Session.Samples
final case class Samples(expr: String, variable: String, points: Vector[(Double, Double)])

A completed sampling: the points, and the text they came from.

The two strings are carried because a plot has to say what it is showing — they title the axes — and the alternative was for the caller to split the command a second time to recover them. A second parse of the same text is exactly the sort of duplicate this codebase removes on sight: the two could disagree, and then a figure would be labelled with something other than what it plots.

Value parameters

expr

the expression as the user typed it

points

the (x, y) pairs, with non-finite results already dropped

variable

the name sampled over

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product