root/vtcross/trunk/src/main_utility.c
@
14
Revision 14, 326 bytes (checked in by jgaeddert, 16 years ago) |
---|
Rev | Line | |
---|---|---|
[14] | 1 | // |
2 | // Test utility | |
3 | // | |
4 | ||
5 | #include <stdio.h> | |
6 | #include "utility.h" | |
7 | ||
8 | int main() { | |
9 | utility u = utility_create(2.0f, UTIL_SHAPE_BELL, UTIL_REL_LIN, UTIL_MAX); | |
10 | ||
11 | unsigned int i; | |
12 | for (i=0; i<5; i++) | |
13 | printf("u(%d) = %f\n", i, utility_evaluate(u, i)); | |
14 | ||
15 | utility_free(u); | |
16 | printf("done.\n"); | |
17 | return 0; | |
18 | } | |
19 |
Note: See TracBrowser
for help on using the browser.