File: Kendall.h

package info (click to toggle)
pchar 1.5-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 644 kB
  • ctags: 402
  • sloc: cpp: 6,096; sh: 2,510; makefile: 192
file content (41 lines) | stat: -rw-r--r-- 988 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// -*- c++ -*-
//
// $Id: Kendall.h 1082 2005-02-12 19:40:04Z bmah $
//
// Kendall.h
// Bruce A. Mah <bmah@acm.org>
//
// This work was first produced by an employee of Sandia National
// Laboratories under a contract with the U.S. Department of Energy.
// Sandia National Laboratories dedicates whatever right, title or
// interest it may have in this software to the public. Although no
// license from Sandia is needed to copy and use this software,
// copying and using the software might infringe the rights of
// others. This software is provided as-is. SANDIA DISCLAIMS ANY
// WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
//

typedef enum {
    KendallP900,
    KendallP950,
    KendallP975,
    KendallP990,
    KendallP995,
    KendallPMax
} KendallPType;

typedef struct {
    unsigned int n;
    unsigned int value[KendallPMax];
} KendallLine;

class Kendall {

  public:
    static unsigned int T(unsigned int n, KendallPType p);

  private:
    static KendallLine table[];

};