diff options
author | Sean Enderby <sean.enderby@gmail.com> | 2014-02-25 14:27:25 +0000 |
---|---|---|
committer | Sean Enderby <sean.enderby@gmail.com> | 2014-02-25 14:27:25 +0000 |
commit | 71ae0bc782330606c03cd01f31aa22211ff8c857 (patch) | |
tree | b7e3d36e23bbedac08ebc8ad02f361a57559cb4b /src/scalar.c | |
parent | 8fad3a92195af9f58d008ec82c267c7a992456cc (diff) | |
download | LibXtract-71ae0bc782330606c03cd01f31aa22211ff8c857.tar.gz LibXtract-71ae0bc782330606c03cd01f31aa22211ff8c857.tar.bz2 LibXtract-71ae0bc782330606c03cd01f31aa22211ff8c857.zip |
updated docs and removed commented out code
Diffstat (limited to 'src/scalar.c')
-rw-r--r-- | src/scalar.c | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/src/scalar.c b/src/scalar.c index ba662f2..becf341 100644 --- a/src/scalar.c +++ b/src/scalar.c @@ -298,109 +298,6 @@ int xtract_irregularity_j(const double *data, const int N, const void *argv, dou return XTRACT_SUCCESS; } -/* - *int xtract_tristimulus_1(const double *data, const int N, const void *argv, double *result) - *{ - * - * int n = N; - * - * double den, p1, temp; - * - * den = p1 = temp = 0.0; - * - * for(n = 0; n < N; n++) - * { - * if((temp = data[n])) - * { - * den += temp; - * if(!p1) - * p1 = temp; - * } - * } - * - * if(den == 0.0 || p1 == 0.0) - * { - * *result = 0.0; - * return XTRACT_NO_RESULT; - * } - * else - * { - * *result = p1 / den; - * return XTRACT_SUCCESS; - * } - *} - * - *int xtract_tristimulus_2(const double *data, const int N, const void *argv, double *result) - *{ - * - * int n = N; - * - * double den, p2, p3, p4, ps, temp; - * - * den = p2 = p3 = p4 = ps = temp = 0.0; - * - * for(n = 0; n < N; n++) - * { - * if((temp = data[n])) - * { - * den += temp; - * if(!p2) - * p2 = temp; - * else if(!p3) - * p3 = temp; - * else if(!p4) - * p4 = temp; - * } - * } - * - * ps = p2 + p3 + p4; - * - * if(den == 0.0 || ps == 0.0) - * { - * *result = 0.0; - * return XTRACT_NO_RESULT; - * } - * else - * { - * *result = ps / den; - * return XTRACT_SUCCESS; - * } - * - *} - * - *int xtract_tristimulus_3(const double *data, const int N, const void *argv, double *result) - *{ - * - * int n = N, count = 0; - * - * double den, num, temp; - * - * den = num = temp = 0.0; - * - * for(n = 0; n < N; n++) - * { - * if((temp = data[n])) - * { - * den += temp; - * if(count >= 5) - * num += temp; - * count++; - * } - * } - * - * if(den == 0.0 || num == 0.0) - * { - * *result = 0.0; - * return XTRACT_NO_RESULT; - * } - * else - * { - * *result = num / den; - * return XTRACT_SUCCESS; - * } - *} - */ - int xtract_tristimulus_1(const double *data, const int N, const void *argv, double *result) { int n = N >> 1, h = 0, i; |