Changeset 37807 for trunk/Ohana/src/libohana/include/ohana.h
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libohana/include/ohana.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/libohana/include/ohana.h
r37356 r37807 242 242 // sorting is now defined as a macro call 243 243 # include <ohana_sort.h> 244 245 // vector statistics options 246 typedef enum { 247 VSTATS_NONE, 248 VSTATS_MEAN, 249 VSTATS_MEDIAN, 250 VSTATS_WT_MEAN, 251 VSTATS_INNER_MEAN, 252 VSTATS_INNER_WTMEAN, 253 VSTATS_CHI_INNER_MEAN, 254 VSTATS_CHI_INNER_WTMEAN 255 } VStatsMode; 256 257 typedef struct { 258 double median; 259 double mean; 260 double sigma; 261 double error; 262 double chisq; 263 double min; 264 double max; 265 double Upper80; 266 double Lower20; 267 double total; 268 int Nmeas; 269 VStatsMode statmode; 270 } VStatsType; 244 271 245 272 /* socket / pipe communication buffer */ … … 314 341 char *ohana_version PROTO((void)); 315 342 343 int dgaussjordan_pivot PROTO((double **A, double **B, int N, int M, double minPivot)); 316 344 int dgaussjordan PROTO((double **A, double **B, int N, int M)); 317 345 int fgaussjordan PROTO((float **A, float **B, int n, int m)); … … 388 416 int rconnect (char *command, char *hostname, char *shell, int *stdio, int *errorInfo, int doHandshake); 389 417 418 int vstats_setmode (VStatsType *stats, char *mode); 419 int vstats_getstats (double *value, double *dvalue, double *weight, int N, VStatsType *stats); 420 int vstats_getstats_f (float *value, float *dvalue, float *weight, int N, VStatsType *stats); 421 390 422 /* 391 423 # define F_SETFL 4 … … 404 436 */ 405 437 406 # endif 438 439 /** gsl-based functions for legendre and related polynomials **/ 440 441 double ohana_gsl_sf_log_1plusx (double x, double *err); 442 double ohana_gsl_sf_lnpoch(const double a, const double x, double *err); 443 double ohana_gsl_lnpoch_pos (const double a, const double x, double *err); 444 double ohana_gsl_pochrel_smallx(const double a, const double x, double *err); 445 446 double legendre_Pl (int l, double x, double *err); 447 double legendre_Plm (int l, int m, double x, double *err); 448 double legendre_Plm_sphere(int l, int m, double x, double *err); 449 450 typedef struct { 451 double *Fr; 452 double *Fi; 453 int *l; 454 int *m; 455 int lmax; 456 int Nterms; 457 } SHterms; 458 459 SHterms *SHtermsInit (int lmax); 460 void SHtermsFree (SHterms *terms); 461 void SHtermsForRD (SHterms *terms, double R, double D); 462 void SHtermsForLM (SHterms *terms, double R, double D, int l, int m); 463 464 typedef struct { 465 double *dR_B; 466 double *dR_E; 467 double *dD_B; 468 double *dD_E; 469 int *l; 470 int *m; 471 int lmax; 472 int Nterms; 473 } VSHterms; 474 475 VSHterms *VSHtermsInit (int lmax); 476 void VSHtermsFree (VSHterms *terms); 477 void VSHtermsForRD (VSHterms *terms, double R, double D); 478 void VSHtermsForLM (VSHterms *terms, double R, double D, int l, int m); 479 480 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
