Created
March 28, 2012 04:34
-
-
Save cgarciagl/2223638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
C: TChi_square_distribution; | |
P: Single; | |
begin | |
// Creamos la instancia | |
// en este caso con 4 grados de libertad | |
C := TChi_square_distribution.create(4); | |
// Obtenemos la probabilidad acumulada al valor 5 | |
P := C.prob_between(0, 5); | |
// Probabilidad X >= 5 | |
P := 1 - C.prob_between(0, 5); | |
// El valor de la función de densidad en 10 | |
D := C.density(10); | |
C.Free; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment