PredictionLineData.swift 360 B

12345678910111213141516
  1. import Foundation
  2. public struct PredictionLineData: Identifiable, Hashable {
  3. public init(id: UUID = UUID(), type: PredictionType, values: [Double]) {
  4. self.id = id
  5. self.type = type
  6. self.values = values
  7. }
  8. public var id = UUID()
  9. let type: PredictionType
  10. let values: [Double]
  11. func max() -> Int { values.count }
  12. }