MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / constructor

Method constructor

nodejs_package/brainflow/ml_model.ts:53–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 private lib: koffi.IKoffiLib;
52
53 private constructor()
54 {
55 super ();
56 this.libPath = resolveLibPath();
57 this.dllPath = this.getDLLPath();
58 this.lib = this.getLib();
59
60 this.setLogLevelMLModule = this.lib.func(CLike.set_log_level_ml_module);
61 this.setLogFileMLModule = this.lib.func(CLike.set_log_file_ml_module);
62 this.logMessageMLModule = this.lib.func(CLike.log_message_ml_module);
63 this.getVersionMLModule = this.lib.func(CLike.get_version_ml_module);
64 this.prepare = this.lib.func(CLike.prepare);
65 this.predict = this.lib.func(CLike.predict);
66 this.release = this.lib.func(CLike.release);
67 this.releaseAll = this.lib.func(CLike.release_all);
68 }
69
70 private getDLLPath()
71 {

Callers

nothing calls this directly

Calls 3

getDLLPathMethod · 0.95
getLibMethod · 0.95
resolveLibPathFunction · 0.90

Tested by

no test coverage detected