diff options
| author | drowe67 <[email protected]> | 2023-07-14 12:36:50 +0930 |
|---|---|---|
| committer | David Rowe <[email protected]> | 2023-07-14 12:36:50 +0930 |
| commit | b86e88413d4c6ec428aaedb147f7675f28882fe4 (patch) | |
| tree | ce360925856e25d4343d59a37e2e6bac142d3752 /src/mbest.h | |
| parent | 0c2e969cfbe85548801eeb20ad8113969604892a (diff) | |
clang-format -i applied to src unittest misc
Diffstat (limited to 'src/mbest.h')
| -rw-r--r-- | src/mbest.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mbest.h b/src/mbest.h index f7d0d86..2851fb9 100644 --- a/src/mbest.h +++ b/src/mbest.h @@ -33,21 +33,23 @@ #define MBEST_STAGES 4 struct MBEST_LIST { - int index[MBEST_STAGES]; /* index of each stage that lead us to this error */ - float error; + int index[MBEST_STAGES]; /* index of each stage that lead us to this error */ + float error; }; struct MBEST { - int entries; /* number of entries in mbest list */ - struct MBEST_LIST *list; + int entries; /* number of entries in mbest list */ + struct MBEST_LIST *list; }; struct MBEST *mbest_create(int entries); void mbest_destroy(struct MBEST *mbest); void mbest_precompute_weight(float cb[], float w[], int k, int m); void mbest_insert(struct MBEST *mbest, int index[], float error); -void mbest_search(const float *cb, float vec[], int k, int m, struct MBEST *mbest, int index[]); -void mbest_search450(const float *cb, float vec[], float w[], int k,int shorterK, int m, struct MBEST *mbest, int index[]); +void mbest_search(const float *cb, float vec[], int k, int m, + struct MBEST *mbest, int index[]); +void mbest_search450(const float *cb, float vec[], float w[], int k, + int shorterK, int m, struct MBEST *mbest, int index[]); void mbest_print(char title[], struct MBEST *mbest); |
