public static int detrend(double[] data, int len, int operation) { if (System.Environment.Is64BitProcess) { return(DataHandlerLibrary64.detrend(data, len, operation)); } else { return(DataHandlerLibrary32.detrend(data, len, operation)); } }
public static int detrend(double[] data, int len, int operation) { switch (PlatformHelper.get_library_environment()) { case LibraryEnvironment.x64: return(DataHandlerLibrary64.detrend(data, len, operation)); case LibraryEnvironment.x86: return(DataHandlerLibrary32.detrend(data, len, operation)); case LibraryEnvironment.Linux: return(DataHandlerLibraryLinux.detrend(data, len, operation)); case LibraryEnvironment.MacOS: return(DataHandlerLibraryMac.detrend(data, len, operation)); } return((int)CustomExitCodes.GENERAL_ERROR); }