MISR Toolkit  1.5.1
Functions
MtkRegressionCoeffCalc.c File Reference
#include "MisrRegression.h"
#include "MisrUtil.h"
#include <stdlib.h>
#include <math.h>

Go to the source code of this file.

Functions

MTKt_status MtkRegressionCoeffCalc (const MTKt_DataBuffer *Data1, const MTKt_DataBuffer *Valid_mask1, const MTKt_DataBuffer *Data2, const MTKt_DataBuffer *Data2_sigma, const MTKt_DataBuffer *Valid_mask2, const MTKt_MapInfo *Map_info, int Regression_size_factor, MTKt_RegressionCoeff *Regression_coeff, MTKt_MapInfo *Regression_coeff_map_info)
 Calculate linear regression coefficients for translating values in data buffer 1 to corresponding values in data buffer 2. More...
 

Function Documentation

◆ MtkRegressionCoeffCalc()

MTKt_status MtkRegressionCoeffCalc ( const MTKt_DataBuffer Data1,
const MTKt_DataBuffer Valid_mask1,
const MTKt_DataBuffer Data2,
const MTKt_DataBuffer Data2_sigma,
const MTKt_DataBuffer Valid_mask2,
const MTKt_MapInfo Map_info,
int  Regression_size_factor,
MTKt_RegressionCoeff Regression_coeff,
MTKt_MapInfo Regression_coeff_map_info 
)

Calculate linear regression coefficients for translating values in data buffer 1 to corresponding values in data buffer 2.

Returns
MTK_SUCCESS if successful.
Example:
In this example we determine coefficients to map values in data1 with mask valid_mask1 to data2 having mask valid_mask2 and uncertainty data2_sigma. Linear regression will use pixel neighborhood size specified by regression_size_factor and output the results to regression_coeff with regression_coeff_map_info.
status = MtkRegressionCoeffCalc(&data1, &valid_mask1, &data2, &data2_sigma, &valid_mask2, &map_info, regression_size_factor, &regression_coeff, &regression_coeff_map_info);
Note
Parameters
[in]Data1Data buffer 1
[in]Valid_mask1Valid mask for data buffer 1
[in]Data2Data buffer 2
[in]Data2_sigmaUncertainty for data buffer 2
[in]Valid_mask2Valid mask for data buffer 2
[in]Map_infoMap info for input data.
[in]Regression_size_factorNumber of pixels to aggregate along each axis when generating regression coefficients.
[out]Regression_coeffRegression coefficients.
[out]Regression_coeff_map_infoMap info for regression coefficients

Definition at line 36 of file MtkRegressionCoeffCalc.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53