예제 #1
0
        private ArtifactType FillBaselineData(PeriGen.Patterns.Engine.Data.Baseline item)
        {
            var toRet = new Baseline()
            {
                Category            = Resource.IDS_BASELINE,
                Id                  = item.Id,
                Y1                  = item.Y1,
                Y2                  = item.Y2,
                BaselineVariability = item.BaselineVariability
            };

            return(toRet);
        }
예제 #2
0
        public static String WriteBaselineDAT(DetectionArtifact item, DateTime AbsoluteStart)
        {
            Baseline      blItem = item as Baseline;
            StringBuilder value  = new StringBuilder(255);

            value.Append("EVT|");

            /* 00 */
            value.Append("9");  // event::tbaseline
            value.Append("|");
            /* 01 */
            value.Append(((int)((item.StartTime - AbsoluteStart).TotalSeconds * 4)).ToString(CultureInfo.InvariantCulture));
            value.Append("|");
            /* 02 */
            value.Append(String.Empty); // Peak time
            value.Append("|");
            /* 03 */
            value.Append(((int)((item.EndTime - AbsoluteStart).TotalSeconds * 4)).ToString(CultureInfo.InvariantCulture));
            value.Append("|");
            /* 04 */
            value.Append(blItem.Y1.ToString("0.000000", CultureInfo.InvariantCulture));
            value.Append("|");
            /* 05 */
            value.Append(blItem.Y2.ToString("0.000000", CultureInfo.InvariantCulture));
            value.Append("|");
            /* 06 */
            value.Append(String.Empty); // Contraction start
            value.Append("|");
            /* 07 */
            value.Append("y"); // Final
            value.Append("|");
            /* 08 */
            value.Append(String.Empty); // Strikeout
            value.Append("|");
            /* 09 */
            value.Append(String.Empty); // Confidence
            value.Append("|");
            /* 10 */
            value.Append(String.Empty); // Repair
            value.Append("|");
            /* 11 */
            value.Append(String.Empty); // Height
            value.Append("|");
            /* 12 */
            value.Append(blItem.BaselineVariability.ToString("0.000000", CultureInfo.InvariantCulture));
            value.Append("|");
            /* 13 */
            value.Append(String.Empty); // Peak value
            value.Append("|");
            /* 14 */
            value.Append(String.Empty); // Non reassuring features ?
            value.Append("|");
            /* 15 */
            value.Append(String.Empty); // Variable decel
            value.Append("|");
            /* 16 */
            value.Append(String.Empty); // Lag
            value.Append("|");
            /* 17 */
            value.Append(String.Empty); // Non reassuring features
            value.Append("|");
            /* 18 */
            value.Append(String.Empty); // Non Interpretable
            value.Append("|");
            /* 19 */
            value.Append(String.Empty); // Confirmed
            value.Append("|");
            /* 20 */
            value.Append(item.Id.ToString(CultureInfo.InvariantCulture));

            return(value.ToString());
        }