isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
sort.h
1 // Copyright (c) 2017-, California Institute of Technology ("Caltech"). U.S.
2 // Government sponsorship acknowledged.
3 // All rights reserved.
4 //
5 // Author(s):
6 //
7 // ======================================================================
8 //
9 // FILENAME: sort.h
10 //
11 // ======================================================================
12 
13 #pragma once
14 
15 #include "stdlib.h"
16 
17 void maxHeapify (double * vals, int n, int *indexes, int root);
18 void maxHeapify (float * vals, int n, int *indexes, int root);
19 void maxHeapify (int * vals, int n, int *indexes, int root);
20 void heapSort (int n, double *val, int *indexes, int order = 0); // order == 0: small to large; order == 1: large to small;
21 void heapSort (int n, float *val, int *indexes, int order = 0); // order == 0: small to large; order == 1: large to small;
22 void heapSort (int n, int *val, int *indexes, int order = 0); // order == 0: small to large; order == 1: large to small;
23 
24 void medium_filtering(int n, double *data, int win, double nodata);
25 void medium_filtering(int n, float *data, int win, float nodata);
26 float median_of_medians(int n, float *data, int rank);
27 float median_use_histogram(int n, float *data, int start_count = 0, int total_size = 0);
28 // main call using
29 // median_use_histogram(n, data, 0, n),
30 // or simply
31 // median_use_histogram(n, data);

Generated for ISCE3.0 by doxygen 1.8.5.