Skip to content

Enjoying the library? Give us a on GitHub.

You're not viewing the latest version. Click here to go to latest.
sdr
sdr.crest_factor
Initializing search
    mhostetter/sdr
    • Examples
    • Development
    • API Reference
    • Release Notes
    • Index
    mhostetter/sdr
      • Pulse shapes
      • Peak-to-average power
      • FIR filters
      • IIR filters
      • Farrow arbitrary resampler
      • Phase-shift keying
      • Phase-locked loops
      • Installation
      • Formatting
      • Unit Tests
      • Documentation
      • Digital signal processing
        • Filtering
          • CFIR
            • Constructors
              • M__init__
            • Special methods
              • M__call__
              • M__len__
            • String representation
              • M__repr__
              • M__str__
            • Streaming mode only
              • Mreset
              • Mflush
              • Pstreaming
              • Pstate
            • Methods
              • Mimpulse_response
              • Mstep_response
              • Mfrequency_response
              • Mfrequency_response_log
            • Properties
              • Ptaps
              • Porder
              • Pdelay
          • CIIR
            • Constructors
              • M__init__
              • MZerosPoles
            • Special methods
              • M__call__
            • String representation
              • M__repr__
              • M__str__
            • Streaming mode only
              • Mreset
              • Pstreaming
              • Pstate
            • Methods
              • Mimpulse_response
              • Mstep_response
              • Mfrequency_response
              • Mfrequency_response_log
            • Properties
              • Pb_taps
              • Pa_taps
              • Porder
              • Pzeros
              • Ppoles
              • Pgain
        • Multirate filtering
          • CInterpolator
            • Constructors
              • M__init__
            • Special methods
              • M__call__
            • String representation
              • M__repr__
              • M__str__
            • Streaming mode only
              • Mreset
            • Properties
              • Prate
              • Pmethod
              • Ptaps
              • Ppolyphase_taps
              • Pdelay
          • CDecimator
            • Constructors
              • M__init__
            • Special methods
              • M__call__
            • String representation
              • M__repr__
              • M__str__
            • Streaming mode only
              • Mreset
            • Properties
              • Prate
              • Pmethod
              • Ptaps
              • Ppolyphase_taps
              • Pdelay
          • CResampler
            • Constructors
              • M__init__
            • Special methods
              • M__call__
            • String representation
              • M__repr__
              • M__str__
            • Streaming mode only
              • Mreset
            • Properties
              • Pup
              • Pdown
              • Prate
              • Pmethod
              • Ptaps
              • Ppolyphase_taps
              • Pdelay
          • Fmultirate_taps
          • Fpolyphase_matrix
        • Arbitrary resampling
          • CFarrowResampler
            • Constructors
              • M__init__
            • Special methods
              • M__call__
            • Methods
              • Mreset
            • Properties
              • Ptaps
              • Porder
              • Pstreaming
        • Filtering applications
          • CDifferentiator
            • Constructors
              • M__init__
          • CIntegrator
            • Constructors
              • M__init__
        • Signal manipulation
          • Fmix
          • Fto_complex_bb
          • Fto_real_pb
          • Fupsample
          • Fdownsample
      • Sequences
        • Fbarker
        • Fzadoff_chu
      • Modulation
        • Linear modulations
          • CLinearModulation
            • Constructors
              • M__init__
            • String representation
              • M__repr__
              • M__str__
            • Methods
              • Mmap_symbols
              • Mdecide_symbols
              • Mmodulate
              • Mdemodulate
              • Mber
              • Mser
            • Properties
              • Porder
              • Pbps
              • Pphase_offset
              • Psymbol_map
              • Psps
              • Ppulse_shape
              • Ptx_filter
              • Prx_filter
          • CPSK
            • Constructors
              • M__init__
            • String representation
              • M__repr__
              • M__str__
            • Methods
              • Mber
              • Mser
            • Properties
              • Pphase_offset
              • Psymbol_map
          • CPiMPSK
            • Constructors
              • M__init__
          • COQPSK
            • Constructors
              • M__init__
            • String representation
              • M__repr__
              • M__str__
        • Continuous-phase modulations
          • CMSK
            • Constructors
              • M__init__
        • Pulse shaping
          • Frectangular
          • Fhalf_sine
          • Fgaussian
          • Fraised_cosine
          • Froot_raised_cosine
        • Symbol mapping
          • Fbinary_code
          • Fgray_code
        • Symbol encoding
          • Fdiff_encode
          • Fdiff_decode
      • Detection
        • Detectors
          • CReplicaCorrelator
            • Methods
              • Mroc
              • Mp_d
              • Mp_fa
              • Mthreshold
          • CEnergyDetector
            • Methods
              • Mroc
              • Mp_d
              • Mp_fa
              • Mthreshold
        • Theoretical limits
          • Falbersheim
      • Synchronization
        • CLoopFilter
          • Constructors
            • M__init__
          • Special methods
            • M__call__
          • Methods
            • Mreset
          • Properties
            • Pnoise_bandwidth
            • Pdamping_factor
            • PK1
            • PK2
            • Piir
        • CNCO
          • Constructors
            • M__init__
          • Special methods
            • M__call__
          • Methods
            • Mreset
            • Mstep
          • Properties
            • PK0
            • Pincrement
            • Poffset
        • CClosedLoopPLL
          • Constructors
            • M__init__
          • Methods
            • Mphase_lock_time
            • Mfrequency_lock_time
            • Mlock_time
            • Mphase_error_variance
          • Properties
            • Psample_rate
            • PBnT
            • PBn
            • Pzeta
            • PK0
            • PKp
            • PK1
            • PK2
            • Piir
            • Pomega_n
            • Pomega_3dB
      • Measurement
        • Energy
          • Fenergy
        • Power
          • Fpeak_power
          • Faverage_power
          • Fpapr
        • Voltage
          • Fpeak_voltage
          • Frms_voltage
          • Fcrest_factor
            • Parameters
              • px
            • Returns
            • References
        • Modulation
          • CErrorRate
            • Constructors
              • M__init__
            • Methods
              • Madd
              • Merrors
              • Mcounts
              • Merror_rate
              • Merror_rates
          • Fevm
      • Conversions
        • Decibels
          • Fdb
          • Flinear
        • Ratios
          • Fpercent
          • Fppm
          • Fppb
        • From E_b/N_0
          • Febn0_to_esn0
          • Febn0_to_snr
        • From E_s/N_0
          • Fesn0_to_ebn0
          • Fesn0_to_snr
        • From S/N
          • Fsnr_to_ebn0
          • Fsnr_to_esn0
      • Simulation
        • Channel models
          • Fbsc
          • Fbec
          • Fdmc
        • Signal impairments
          • Fawgn
          • Fiq_imbalance
          • Fsample_rate_offset
          • Ffrequency_offset
      • Link budgets
        • Channel capacity
          • Fbsc_capacity
          • Fbec_capacity
          • Fawgn_capacity
        • Path losses
          • Ffspl
        • Antennas
          • Fwavelength
          • Fparabolic_antenna
      • Probability
        • FQ
        • FQinv
      • Data manipulation
        • Fpack
        • Funpack
        • Fhexdump
      • Plotting
        • Configuration
          • Fuse_style
        • Time-domain
          • Ftime_domain
          • Fraster
        • Spectral estimation
          • Fperiodogram
          • Fspectrogram
        • Modulation
          • Fconstellation
          • Fsymbol_map
          • Feye
          • Fphase_tree
          • Fber
          • Fser
        • Detection
          • Froc
          • Fp_d
        • Filter analysis
          • Fimpulse_response
          • Fstep_response
          • Fzeros_poles
          • Fmagnitude_response
          • Fphase_response
          • Fphase_delay
          • Fgroup_delay
          • Ffilter
      • Versioning
      • v0.0
      • Index
    • Parameters
      • px
    • Returns
    • References
    sdr.crest_factor(x: NDArray) → float

    Measures the crest factor of a time-domain signal \(x[n]\).

    \[\text{CF} = \frac{V_{\text{peak}}}{V_{\text{rms}}}\]

    Parameters:¶
    x: NDArray¶

    The time-domain signal \(x[n]\) to measure.

    Returns:¶

    The crest factor of \(x[n]\).

    See also

    sdr.peak_voltage, sdr.rms_voltage

    References¶

    • https://en.wikipedia.org/wiki/Crest_factor

    Back to top
    Previous sdr.rms_voltage
    Next sdr.ErrorRate
    © Copyright 2023, Matt Hostetter.
    Created using Sphinx 5.3.0. and Sphinx-Immaterial