MISR Toolkit  1.5.1
MtkRegressionCoeffFree.c
Go to the documentation of this file.
1 /*===========================================================================
2 = =
3 = MtkRegressionCoeffFree =
4 = =
5 =============================================================================
6 
7  Jet Propulsion Laboratory
8  MISR
9  MISR Toolkit
10 
11  Copyright 2008, California Institute of Technology.
12  ALL RIGHTS RESERVED.
13  U.S. Government Sponsorship acknowledged.
14 
15 ============================================================================*/
16 
17 #include "MisrRegression.h"
18 #include "MisrError.h"
19 #include <stdlib.h>
20 
34  MTKt_RegressionCoeff *regressbuf
35 )
36 {
37 
38  if (regressbuf != NULL) {
39  MtkDataBufferFree(&regressbuf->valid_mask);
40  MtkDataBufferFree(&regressbuf->slope);
41  MtkDataBufferFree(&regressbuf->intercept);
42  MtkDataBufferFree(&regressbuf->correlation);
43  }
44 
45  return MTK_SUCCESS;
46 }
MTKt_DataBuffer valid_mask
MTKt_DataBuffer slope
MTKt_status MtkDataBufferFree(MTKt_DataBuffer *databuf)
Free data buffer.
MTKt_DataBuffer intercept
MTKt_status MtkRegressionCoeffFree(MTKt_RegressionCoeff *regressbuf)
Free memory for regression coefficients.
MTKt_status
Definition: MisrError.h:11
MTKt_DataBuffer correlation

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