package curve-sampling

  1. Overview
  2. Docs

Module Curve_sampling.P2Source

Interface using Gg.p2 to represent points.

Sourceval param : ?n:int -> ?viewport:Gg.Box2.t -> ?init:float list -> ?init_pt:(float * Gg.p2) list -> (float -> Gg.p2) -> float -> float -> [ `Fn ] t
Sourceval uniform : ?n:int -> (float -> Gg.p2) -> float -> float -> [ `Fn ] t

uniform f a b return a sampling of the image of f on n equidistant points in the interval [a, b] (the boundaries a and b being always included — so n >= 2).

  • parameter n

    the number of points. If n <= 2 is given, it is considered as if n=2 was passed. Default: n = 100.

Sourceval of_path : Gg.p2 list -> [ `Pt ] t

Use the provided path as the sampling.

Sourcetype point_or_cut =
  1. | Point of Gg.p2
  2. | Cut
Sourceval to_list : _ t -> point_or_cut list

to_list s return the sampling as a list of points in increasing order of the parameter of the curve. The curve is possibly made of several pieces separated by a single Cut.

Sourceval of_seq : ?n:int -> Gg.p2 Seq.t -> [ `Pt ] t
OCaml

Innovation. Community. Security.