Wideband autonomous SDR analysis engine forked from sdr-visual-suite
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

38 lines
1.5KB

  1. package pipeline
  2. import "sdr-wideband-suite/internal/detector"
  3. type SurveillanceResult struct {
  4. Candidates []Candidate `json:"candidates"`
  5. Scheduled []ScheduledCandidate `json:"scheduled,omitempty"`
  6. Finished []detector.Event `json:"finished"`
  7. Signals []detector.Signal `json:"signals"`
  8. NoiseFloor float64 `json:"noise_floor"`
  9. Thresholds []float64 `json:"thresholds,omitempty"`
  10. }
  11. type RefinementPlan struct {
  12. TotalCandidates int `json:"total_candidates"`
  13. MinCandidateSNRDb float64 `json:"min_candidate_snr_db"`
  14. Budget int `json:"budget"`
  15. DroppedBySNR int `json:"dropped_by_snr"`
  16. DroppedByBudget int `json:"dropped_by_budget"`
  17. Selected []ScheduledCandidate `json:"selected,omitempty"`
  18. }
  19. type RefinementInput struct {
  20. Candidates []Candidate `json:"candidates,omitempty"`
  21. Scheduled []ScheduledCandidate `json:"scheduled,omitempty"`
  22. Plan RefinementPlan `json:"plan,omitempty"`
  23. SampleRate int `json:"sample_rate"`
  24. FFTSize int `json:"fft_size"`
  25. CenterHz float64 `json:"center_hz"`
  26. Source string `json:"source,omitempty"`
  27. }
  28. type RefinementResult struct {
  29. Signals []detector.Signal `json:"signals"`
  30. Decisions []SignalDecision `json:"decisions,omitempty"`
  31. Candidates []Candidate `json:"candidates,omitempty"`
  32. }