Add cleanup to trainfromFiles and move RANDOM_segment_t declaration

This commit is contained in:
Jennifer Liu
2018-07-18 10:40:13 -07:00
parent ce09fb723d
commit 52e7cf0e40
3 changed files with 11 additions and 8 deletions
+9
View File
@@ -47,6 +47,15 @@ static size_t RANDOM_sum(const size_t *samplesSizes, unsigned nbSamples) {
}
/**
* A segment is an inclusive range in the source.
*/
typedef struct {
U32 begin;
U32 end;
} RANDOM_segment_t;
/**
* Selects a random segment from totalSamplesSize - k + 1 possible segments
*/