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
    • API Reference
    • Development
    • Release Notes
    • Index
    mhostetter/sdr
      • Pulse shapes
      • Peak-to-average power
      • FIR filters
      • IIR filters
      • Farrow arbitrary resampler
      • Phase-shift keying
      • Phase-locked loops
      • Filtering
        • CFIR
          • Constructors
            • M__init__
          • Methods
            • Mfilter
            • Mfrequency_response
            • Mfrequency_response_log
            • Mimpulse_response
            • Mreset
            • Mstep_response
          • Properties
            • Pdelay
            • Porder
            • Pstreaming
            • Ptaps
        • CFIRInterpolator
          • Constructors
            • M__init__
          • Methods
            • Mfilter
            • Mreset
          • Properties
            • Ppolyphase_taps
            • Prate
            • Pstreaming
            • Ptaps
        • CIIR
          • Constructors
            • M__init__
            • MZerosPoles
          • Methods
            • Mfilter
            • Mfrequency_response
            • Mfrequency_response_log
            • Mimpulse_response
            • Mreset
            • Mstep_response
          • Properties
            • Pa_taps
            • Pb_taps
            • Pgain
            • Porder
            • Ppoles
            • Pstreaming
            • Pzeros
      • Resampling
        • CFarrowResampler
          • Constructors
            • M__init__
          • Methods
            • Mresample
            • Mreset
          • Properties
            • Porder
            • Pstreaming
            • Ptaps
      • Modulation
        • Classes
          • CPSK
            • Constructors
              • M__init__
            • Methods
              • Mbit_error_rate
              • Mdemodulate
              • Mmodulate
              • Msymbol_error_rate
            • Properties
              • Pbps
              • Porder
              • Pphase_offset
              • Psymbol_map
        • Pulse shaping
          • Fgaussian
          • Fraised_cosine
          • Froot_raised_cosine
        • Symbol mapping
          • Fbinary_code
          • Fgray_code
        • Symbol encoding
          • Fdiff_decode
          • Fdiff_encode
      • Synchronization
        • CClosedLoopPLL
          • Constructors
            • M__init__
          • Methods
            • Mfrequency_lock_time
            • Mlock_time
            • Mphase_error_variance
            • Mphase_lock_time
          • Properties
            • PBn
            • PBnT
            • Piir
            • PK0
            • PK1
            • PK2
            • PKp
            • Pomega_3dB
            • Pomega_n
            • Psample_rate
            • Pzeta
        • CDDS
          • Constructors
            • M__init__
          • Methods
            • Mprocess
            • Mreset
            • Mstep
          • Properties
            • Pnco
        • CLoopFilter
          • Constructors
            • M__init__
          • Methods
            • Mfilter
            • Mreset
          • Properties
            • Pdamping_factor
            • Piir
            • PK1
            • PK2
            • Pnoise_bandwidth
        • CNCO
          • Constructors
            • M__init__
          • Methods
            • Mprocess
            • Mreset
            • Mstep
          • Properties
            • Pincrement
            • PK0
            • Poffset
      • Measurement
        • Energy
          • Fenergy
        • Power
          • Faverage_power
          • Fpapr
          • Fpeak_power
        • Voltage
          • Fcrest_factor
            • Parameters
              • px
            • Returns
            • References
          • Fpeak_voltage
          • Frms_voltage
        • Errors
          • CErrorRate
            • Constructors
              • M__init__
            • Methods
              • Madd
              • Mcounts
              • Merror_rate
              • Merror_rates
              • Merrors
      • Conversions
        • 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
          • Fbec
          • Fbsc
          • Fdmc
        • Signal impairments
          • Fawgn
          • Ffrequency_offset
          • Fiq_imbalance
          • Fsample_rate_offset
      • Link budgets
        • Channel capacity
          • Fawgn_capacity
          • Fbec_capacity
          • Fbsc_capacity
        • Path losses
          • Ffspl
        • Antennas
          • Fparabolic_antenna
      • Probability
        • FQ
        • FQinv
      • Data manipulation
        • Fhexdump
        • Fpack
        • Funpack
      • Plotting
        • Configuration
          • Fuse_style
        • Time-domain
          • Ftime_domain
        • Frequency-domain
          • Fperiodogram
          • Fspectrogram
        • Modulation
          • Fber
          • Fconstellation
          • Fser
          • Fsymbol_map
        • Filter analysis
          • Ffilter
          • Ffrequency_response
          • Fgroup_delay
          • Fimpulse_response
          • Fphase_delay
          • Fphase_response
          • Fstep_response
          • Fzeros_poles
      • Installation
      • Linter
      • Unit Tests
      • Documentation
      • Versioning
      • v0.0
      • Index
    • Parameters
      • px
    • Returns
    • References
    sdr.crest_factor(x: ArrayLike) → float

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

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

    Parameters:¶
    x: ArrayLike¶

    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.peak_power
    Next sdr.peak_voltage
    © Copyright 2023, Matt Hostetter.
    Created using Sphinx 5.3.0. and Sphinx-Immaterial