-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataQualityTypes.swift
More file actions
60 lines (51 loc) · 1.63 KB
/
DataQualityTypes.swift
File metadata and controls
60 lines (51 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import Foundation
// MARK: - UWB Connection Status
/// UWB接続状態
public enum UWBConnectionStatus: Equatable {
case disconnected
case connecting
case connected
case error(String)
public var displayText: String {
switch self {
case .disconnected:
return "未接続"
case .connecting:
return "接続中"
case .connected:
return "接続済み"
case .error(let message):
return "エラー: \(message)"
}
}
}
// MARK: - Data Quality Evaluation
/// データ品質評価結果
public struct DataQualityEvaluation {
public let isAcceptable: Bool
public let qualityScore: Double
public let issues: [String]
public let recommendations: [String]
public init(isAcceptable: Bool, qualityScore: Double, issues: [String], recommendations: [String]) {
self.isAcceptable = isAcceptable
self.qualityScore = qualityScore
self.issues = issues
self.recommendations = recommendations
}
}
// MARK: - NLoS Detection Result
/// nLoS検出結果
public struct NLoSDetectionResult {
public let isNLoSDetected: Bool
public let lineOfSightPercentage: Double
public let averageSignalStrength: Double
public let recommendation: String
public init(
isNLoSDetected: Bool, lineOfSightPercentage: Double, averageSignalStrength: Double, recommendation: String
) {
self.isNLoSDetected = isNLoSDetected
self.lineOfSightPercentage = lineOfSightPercentage
self.averageSignalStrength = averageSignalStrength
self.recommendation = recommendation
}
}