File: samplers.rkt

package info (click to toggle)
racket 7.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 125,432 kB
  • sloc: ansic: 258,980; pascal: 59,975; sh: 33,650; asm: 13,558; lisp: 7,124; makefile: 3,329; cpp: 2,889; exp: 499; python: 274; xml: 11
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))