MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / generate_data

Function generate_data

external/ggml/tests/test-quantize-fns.cpp:35–39  ·  view source on GitHub ↗

Generate synthetic data

Source from the content-addressed store, hash-verified

33
34// Generate synthetic data
35static void generate_data(float offset, size_t n, float * dst) {
36 for (size_t i = 0; i < n; i++) {
37 dst[i] = 0.1 + 2*cosf(i + offset);
38 }
39}
40
41// Calculate RMSE between two float arrays
42static float array_rmse(const float * a1, const float * a2, size_t n) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected