示例#1
0
        public HTLeadSin(DataSeries ds, string description)
            : base(ds, description)
        {
            DataSeries Value = HTDCPhase.Series(ds);

            for (int bar = 0; bar < ds.Count; bar++)
            {
                base[bar] = Math.Sin(DegreeToRadian(Value[bar] + 45));
            }
        }
示例#2
0
        public static HTDCPhase Series(DataSeries ds)
        {
            string description = string.Concat(new object[] { "HTDCPhase(", ds.Description, ")" });

            if (ds.Cache.ContainsKey(description))
            {
                return((HTDCPhase)ds.Cache[description]);
            }

            HTDCPhase _HTDCPhase = new HTDCPhase(ds, description);

            ds.Cache[description] = _HTDCPhase;
            return(_HTDCPhase);
        }