Information functions.
More...
#include "libirt.h"
#include <math.h>
#include <gsl/gsl_spline.h>
Functions |
void | info_from_probs (gsl_matrix *probs, gsl_vector *quad_points, gsl_matrix *infos, gsl_vector *test_info) |
| Compute the items' information curves from the response functions.
|
void | info_from_probs_mc (gsl_matrix *probs, gsl_vector *quad_points, gsl_vector_int *nbr_options, gsl_vector_int *items_pos, gsl_matrix *options_infos, gsl_matrix *infos, gsl_vector *test_info) |
| Compute the options' information curves from the response functions for a multivariate model.
|
Detailed Description
Information functions.
- Author
- Stephane Germain germs.nosp@m.te@g.nosp@m.mail..nosp@m.com
Function Documentation
void info_from_probs |
( |
gsl_matrix * |
probs, |
|
|
gsl_vector * |
quad_points, |
|
|
gsl_matrix * |
infos, |
|
|
gsl_vector * |
test_info |
|
) |
| |
Compute the items' information curves from the response functions.
- Parameters
-
[in] | probs | A matrix (items x classes) of response functions. |
[in] | quad_points | A vector(classes) with the middle points of each class. |
[out] | infos | A matrix (items x classes) of items' information curves. |
[out] | test_info | A vector (classes) with test information curve. |
- Warning
- The memory for the outputs must be allocated before.
void info_from_probs_mc |
( |
gsl_matrix * |
probs, |
|
|
gsl_vector * |
quad_points, |
|
|
gsl_vector_int * |
nbr_options, |
|
|
gsl_vector_int * |
items_pos, |
|
|
gsl_matrix * |
options_infos, |
|
|
gsl_matrix * |
infos, |
|
|
gsl_vector * |
test_info |
|
) |
| |
Compute the options' information curves from the response functions for a multivariate model.
- Parameters
-
[in] | probs | A matrix (options x classes) of response functions. |
[in] | quad_points | A vector(classes) with the middle points of each class. |
[in] | nbr_options | A vector(items) with the number of option of each items. |
[in] | items_pos | A vector(items) with the position of the first option of each item. |
[out] | options_infos | A matrix (options x classes) of options' information curves. |
[out] | infos | A matrix (items x classes) of items' information curves. |
[out] | test_info | A vector (classes) with test information curve. |
- Warning
- The memory for the outputs must be allocated before.