oph_gsl_fit_linear

Description

Behaviour

It computes the linear regression.

Parameters

  • input measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • output measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • measure: input measure.
  • dimension: input dimension; data type must be ‘oph_double’.
  • x: points in which the values of regression line have to be evaluated; data type must be ‘oph_double’.

Return type

Binary-array.

Examples

Compute the values of regression line in points ‘x’ given the dimension ‘dimension’.

oph_gsl_fit_linear('OPH_DOUBLE','OPH_DOUBLE',measure,dimension,x)

Operation type

Simple.

Arguments

Argument name Type Mandatory Values Default Min/Max-value Min/Max-times
input measure type “oph_type” “yes” “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’”     “1” / “1”
output measure type “oph_type” “yes” “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’”     “1” / “1”
measure “binary-array” “yes”       “1” / “1”
dimension “binary-array” “yes”       “1” / “1”
x “binary-array” “yes”       “1” / “1”