예제 #1
0
        public static VICycleDataGroup ToVICycleDataGroup(VIDataGroup dataGroup, double frequency)
        {
            DataSeries[] cycleSeries = dataGroup.Data;

            return(new VICycleDataGroup(cycleSeries
                                        .Where(dataSeries => (object)dataSeries != null)
                                        .Select(dataSeries => ToCycleDataGroup(dataSeries, frequency))
                                        .ToList(), dataGroup.Asset));
        }
예제 #2
0
        public VIDataGroup ToSubGroup(DateTime startTime, DateTime endTime)
        {
            VIDataGroup subGroup = new VIDataGroup();

            subGroup.m_vIndices = m_vIndices;
            subGroup.m_iaIndex  = m_iaIndex;
            subGroup.m_ibIndex  = m_ibIndex;
            subGroup.m_icIndex  = m_icIndex;
            subGroup.m_irIndex  = m_irIndex;

            subGroup.m_dataGroup = m_dataGroup.ToSubGroup(startTime, endTime);

            return(subGroup);
        }
예제 #3
0
        public VIDataGroup ToSubGroup(int startIndex, int endIndex)
        {
            VIDataGroup subGroup = new VIDataGroup();

            subGroup.m_vIndices = m_vIndices;
            subGroup.m_iaIndex  = m_iaIndex;
            subGroup.m_ibIndex  = m_ibIndex;
            subGroup.m_icIndex  = m_icIndex;
            subGroup.m_irIndex  = m_irIndex;

            subGroup.m_dataGroup = m_dataGroup.ToSubGroup(startIndex, endIndex);

            return(subGroup);
        }
예제 #4
0
        public static VICycleDataGroup ToVICycleDataGroup(VIDataGroup dataGroup, double frequency)
        {
            DataSeries[] cycleSeries =
            {
                dataGroup.VA,
                dataGroup.VB,
                dataGroup.VC,
                dataGroup.VAB,
                dataGroup.VBC,
                dataGroup.VCA,
                dataGroup.IA,
                dataGroup.IB,
                dataGroup.IC,
                dataGroup.IR
            };

            return(new VICycleDataGroup(cycleSeries
                                        .Where(dataSeries => (object)dataSeries != null)
                                        .Select(dataSeries => ToCycleDataGroup(dataSeries, frequency))
                                        .ToList()));
        }
예제 #5
0
        public static VICycleDataGroup ToVICycleDataGroup(VIDataGroup dataGroup, double frequency)
        {
            DataSeries[] cycleSeries =
            {
                dataGroup.VA,
                dataGroup.VB,
                dataGroup.VC,
                dataGroup.VAB,
                dataGroup.VBC,
                dataGroup.VCA,
                dataGroup.IA,
                dataGroup.IB,
                dataGroup.IC,
                dataGroup.IR
            };

            return new VICycleDataGroup(cycleSeries
                .Where(dataSeries => (object)dataSeries != null)
                .Select(dataSeries => ToCycleDataGroup(dataSeries, frequency))
                .ToList());
        }
예제 #6
0
파일: Transform.cs 프로젝트: daozh/openXDA
 public static VICycleDataGroup ToVICycleDataGroup(VIDataGroup dataGroup, double frequency)
 {
     return(new VICycleDataGroup(dataGroup.ToDataGroup().DataSeries
                                 .Select(dataSeries => ToCycleDataGroup(dataSeries, frequency))
                                 .ToList()));
 }
예제 #7
0
        public VIDataGroup ToSubGroup(int startIndex, int endIndex)
        {
            VIDataGroup subGroup = new VIDataGroup();

            subGroup.m_vaIndex = m_vaIndex;
            subGroup.m_vbIndex = m_vbIndex;
            subGroup.m_vcIndex = m_vcIndex;
            subGroup.m_vabIndex = m_vabIndex;
            subGroup.m_vbcIndex = m_vbcIndex;
            subGroup.m_vcaIndex = m_vcaIndex;
            subGroup.m_iaIndex = m_iaIndex;
            subGroup.m_ibIndex = m_ibIndex;
            subGroup.m_icIndex = m_icIndex;
            subGroup.m_irIndex = m_irIndex;

            subGroup.m_dataGroup = m_dataGroup.ToSubGroup(startIndex, endIndex);

            return subGroup;
        }