File: samplers.rkt

package info (click to toggle)
racket 7.9%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 178,684 kB
  • sloc: ansic: 282,112; lisp: 234,887; pascal: 70,954; sh: 27,112; asm: 16,268; makefile: 4,613; cpp: 2,715; ada: 1,681; javascript: 1,244; cs: 879; exp: 499; csh: 422; python: 274; xml: 106; perl: 104
file content (21 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#lang typed/racket/base

(require racket/match racket/flonum racket/math racket/list
         "type-doc.rkt"
         "parameters.rkt"
         "sample.rkt"
         "math.rkt")

(provide (all-defined-out))

(defthing function->sampler (-> (-> Real Real) ivl Sampler)
  (make-function->sampler plot-x-transform))

(defthing inverse->sampler (-> (-> Real Real) ivl Sampler)
  (make-function->sampler plot-y-transform))

(defthing 2d-function->sampler (-> (-> Real Real Real) (Vector ivl ivl) 2D-Sampler)
  (make-2d-function->sampler plot-x-transform plot-y-transform))

(defthing 3d-function->sampler (-> (-> Real Real Real Real) (Vector ivl ivl ivl) 3D-Sampler)
  (make-3d-function->sampler plot-x-transform plot-y-transform plot-z-transform))