Wideband autonomous SDR analysis engine forked from sdr-visual-suite
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

50 líneas
1.9KB

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