Beispiel #1
0
        private string GetCorrelatedFeature(string feature)
        {
            if (Results == IntPtr.Zero)
            {
                return(null);
            }
            IntPtr f       = StringWrapper.CreateStringWrapperFromString(feature);
            IntPtr corr    = LibraryManager.getCorrelateFeatureByFeatureName(Results, f);
            string corrStr = StringWrapper.GetStr(corr);

            StringWrapper.removeStr(corr);
            StringWrapper.removeStr(f);
            return(corrStr);
        }
Beispiel #2
0
        private void SetAnomalies(IntPtr results)
        {
            AnomaliesData?.Clear();
            anomalies = new List <Anomaly>();
            int len = LibraryManager.anomaliesLen(results);

            for (int i = 0; i < len; ++i)
            {
                IntPtr desc     = LibraryManager.getAnomalyDescription(results, i);
                int    timeStep = LibraryManager.getAnomalyTimeStep(results, i);
                anomalies.Add(new Anomaly(timeStep, StringWrapper.GetStr(desc)));
                // VM_AnomaliesData.Add(new Anomaly(timeStep, GetStr(desc)));
                StringWrapper.removeStr(desc);
            }
        }