module Pdffun:sig..end
Parsing and Evaluating PDF Functions.
type calculator = 
| | 
If of  | 
| | 
IfElse of  | 
| | 
Bool of  | 
| | 
Float of  | 
| | 
Int of  | 
| | 
Abs | 
| | 
Add | 
| | 
Atan | 
| | 
Ceiling | 
| | 
Cos | 
| | 
Cvi | 
| | 
Cvr | 
| | 
Div | 
| | 
Exp | 
| | 
Floor | 
| | 
Idiv | 
| | 
Ln | 
| | 
Log | 
| | 
Mod | 
| | 
Mul | 
| | 
Neg | 
| | 
Round | 
| | 
Sin | 
| | 
Sqrt | 
| | 
Sub | 
| | 
Truncate | 
| | 
And | 
| | 
Bitshift | 
| | 
Eq | 
| | 
Ge | 
| | 
Gt | 
| | 
Le | 
| | 
Lt | 
| | 
Ne | 
| | 
Not | 
| | 
Or | 
| | 
Xor | 
| | 
Copy | 
| | 
Exch | 
| | 
Pop | 
| | 
Dup | 
| | 
Index | 
| | 
Roll | 
type sampled = {
   | 
size :  | 
   | 
order :  | 
   | 
encode :  | 
   | 
decode :  | 
   | 
bps :  | 
   | 
samples :  | 
}
type interpolation = {
   | 
c0 :  | 
   | 
c1 :  | 
   | 
n :  | 
}
type stitching = {
   | 
functions :  | 
   | 
bounds :  | 
   | 
stitch_encode :  | 
}
type pdf_fun_kind = 
| | 
Interpolation of  | 
| | 
Stitching of  | 
| | 
Sampled of  | 
| | 
Calculator of  | 
type t = {
   | 
func :  | 
   | 
domain :  | 
   | 
range :  | 
}
The type of functions.
val parse_function : Pdf.t -> Pdf.pdfobject -> tParse a function given a document and function object.
exception BadFunctionEvaluation of string
Raised from eval_function (see below) in the case of inputs which don't
match the evaluation
val eval_function : t -> float list -> float listEvaluate a function given a list of inputs.
val pdfobject_of_function : Pdf.t -> t -> Pdf.pdfobjectFlatten a function to its PDF representation
val print_function : t -> unitPrint a function to Standard Output. For debug only.