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)); }
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); }
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); }
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())); }
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()); }
public static VICycleDataGroup ToVICycleDataGroup(VIDataGroup dataGroup, double frequency) { return(new VICycleDataGroup(dataGroup.ToDataGroup().DataSeries .Select(dataSeries => ToCycleDataGroup(dataSeries, frequency)) .ToList())); }
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; }