FFT, spettri, filtri e baseline

Consulta le operazioni Numeric per FFT, stima spettrale, filtraggio e correzione della linea di base, con esempi di chiamata e risultati.

Calcolo, modelli, statistiche e Dataset con Python

Tempo, frequenza e segnali

Deriva la frequenza di campionamento dall’intervallo reale e conserva l’unità. Una FFT su campioni di segnale ordinati usa la convenzione del provider. Per ricostruire dalla FFT usa entrambe le componenti. Le stime PSD e ASD hanno unità rispettivamente U²/Hz e U/√Hz. Un ritardo introdotto, una frequenza nota e una baseline dichiarata permettono di controllare il risultato separatamente dal grafico.

Riferimento delle operazioni

Vai a un’operazione

smooth

Accesso
registrata nel Job Python
Argomenti
X, Y, opzioni facoltative di smussamento
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Valori smussati, residui, impostazioni e posizioni esatte mantenute/omesse; nessuna inferenza sui parametri
Effetto
Smussa una serie campionata con controlli espliciti
Tipi
vector
Forma dichiarata
same_length_xy
Opzioni
method=moving_mean,moving_median,savitzky_golay,savgol,local_polynomial,lowess,loess;window=odd;degree=integer;robust_iterations=0..10
Non finiti
error,omit
Regola unità
preserve_y
gxtxt_api_call("NUMERIC_API_v1", "smooth", args)
Risultato registrato · smooth

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  },
  {
    "window": 3
  }
]

Esito, anteprima

{
  "x": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "y": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      3.0,
      5.0,
      7.0,
      9.0,
      10.0
    ]
  },
  "residuals": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
    ]
  },
  "method": "moving_mean",
  "window": 3.0,
  "degree": NaN,
  "endpoint_policy": "shrink",
  "original_count": 6.0,
  "source_row_positions": {
    "shape": [
      6,
      1
    ],
    "dtype": "uint64",
    "values": [
      1,
      2,
      3,
      4,
      5,
      6
    ]
  },
  "dropped_row_positions": {
    "shape": [
      0,
      1
    ],
    "dtype": "uint64",
    "values": []
  }
}

baseline

Accesso
registrata nel Job Python
Argomenti
X, Y, opzioni facoltative; oppure X, Y, X di ancoraggio, Y di ancoraggio, opzioni
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Risposta originale, linea di base, risposta corretta e posizioni selezionate esatte, con ricevuta dello stimatore
Effetto
Stima la linea di base di una serie campionata
Tipi
vector
Forma dichiarata
same_length_xy
Opzioni
method=operation_specific
Non finiti
error,omit
Regola unità
preserve_y
gxtxt_api_call("NUMERIC_API_v1", "baseline", args)
Risultato registrato · baseline

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  }
]

Esito, anteprima

{
  "x": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "baseline": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      6.0,
      6.0,
      6.0,
      6.0,
      6.0,
      6.0
    ]
  },
  "corrected": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -5.0,
      -3.0,
      -1.0,
      1.0,
      3.0,
      5.0
    ]
  },
  "method": "constant",
  "degree": 0.0,
  "coefficients": 6.0,
  "original_x": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "original_y": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  },
  "source_row_positions": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0
    ]
  },
  "dropped_row_positions": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "index_base": 1.0,
  "original_n": 6.0,
  "selected_n": 6.0,
  "nonfinite_policy": "error",
  "row_order": "original_input_order",
  "estimator": {},
  "schema": "gxtxt.baseline_result.v1"
}

signal_snr

Accesso
registrata nel Job Python
Argomenti
due vettori e opzioni vuote facoltative
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
SNR e fatti espliciti su energia e zeri
Effetto
Rapporto fra le energie dei moduli complessi forniti, con fatti espliciti sugli zeri
Tipi
vector
Forma dichiarata
equal_vectors
Non finiti
error
Regola unità
explicit_response
gxtxt_api_call("NUMERIC_API_v1", "signal_snr", args)
Risultato registrato · signal_snr

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.04713967368259977,
      0.08314696123025453,
      0.09951847266721969,
      0.09238795325112868,
      0.06343932841636456,
      0.01950903220161286,
      -0.029028467725446212,
      -0.07071067811865475,
      -0.09569403357322089,
      -0.09807852804032305,
      -0.07730104533627374
    ]
  }
]

Esito, anteprima

{
  "n": 64.0,
  "snr_db": 19.99999999999999,
  "signal_energy": 32.0,
  "noise_energy": 0.3200000000000003,
  "signal_zero": false,
  "noise_zero": false,
  "method": "ratio_of_supplied_complex_magnitude_energies"
}

signal_spectrum_quality

Accesso
registrata nel Job Python
Argomenti
vettore reale, frequenza di campionamento e opzioni fundamental_hz
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Potenze dei bin FFT grezze, rapporti e identità degli ordini armonici
Effetto
Qualità coerente dei bin FFT positivi, conservando i moduli quadrati grezzi
Tipi
vector,scalar
Forma dichiarata
real_vector_and_positive_rate
Opzioni
fundamental_hz=positive_number
Non finiti
error
Regola unità
explicit_response
gxtxt_api_call("NUMERIC_API_v1", "signal_spectrum_quality", args)
Risultato registrato · signal_spectrum_quality

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  64.0,
  {
    "fundamental_hz": 5.0
  }
]

Esito, anteprima

{
  "n": 64.0,
  "sample_rate": 64.0,
  "fundamental_hz": 5.0,
  "fundamental_bin": 5.0,
  "harmonic_orders": {
    "shape": [
      5,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      3.0,
      4.0,
      5.0,
      6.0
    ]
  },
  "method": "coherent_positive_fft_bins",
  "normalization": "raw_positive_fft_squared",
  "fundamental_power": 1024.0,
  "dc_power": 5.913602589240138e-29,
  "harmonic_powers": {
    "shape": [
      5,
      1
    ],
    "dtype": "float64",
    "values": [
      6.824952528814714e-29,
      5.607352861675117e-29,
      2.7926800926447673e-29,
      3.775910917730832e-29,
      1.251283380838676e-28
    ]
  },
  "noise_power": 1.2645836324407494e-27,
  "noise_floor_power_per_bin": 4.317593262844297e-29,
  "noise_floor_db_relative": -313.75058229253546,
  "distortion_power": 3.151373020925219e-28,
  "thd": 5.54753343004554e-16,
  "thd_db": -305.11800143963677,
  "thd_plus_n": 1.242053229588067e-15,
  "snr_db": 299.0835240021802
}

fft_spectrum_quality

Accesso
registrata nel Job Python
Argomenti
campioni reali, passo di campionamento, opzioni facoltative dello stimatore
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Spettro di ampiezza, fatti di qualità limitati e colonne delle componenti
Effetto
Qualità del lobo FFT con correzione del guadagno coerente, conservata
Tipi
vector,scalar
Forma dichiarata
real_vector_and_positive_step
Opzioni
window=window_name;fundamental_mode=auto_peak,explicit;fundamental_hz=positive_number;track_harmonics=2_to_65536;spur_search=all_nonfundamental,nonharmonic_only;guard_bins=nonnegative_integer;detrend=method
Non finiti
error
Regola unità
explicit_response_and_inverse_coordinate
gxtxt_api_call("NUMERIC_API_v1", "fft_spectrum_quality", args)
Risultato registrato · fft_spectrum_quality

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  0.015625
]

Esito, anteprima

{
  "N": 64.0,
  "fs": 64.0,
  "df": 1.0,
  "coherent_gain": 0.49218750000000017,
  "amp": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      0.00016436355704095766,
      0.0007142221665452508,
      0.0017604315767766568,
      0.005288422349501104,
      0.5119048259513536,
      0.9998604020119642,
      0.511844397895942,
      0.005416067244400511,
      0.0019695323711151932,
      0.0010206868298851183,
      0.0006197495456316123,
      0.00041289212707520934
    ]
  },
  "Nh": 33.0,
  "fund_bin": 5.0,
  "fund_amp": 1.2344267346410698,
  "f0": 5.0,
  "magnitude_dbc": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      -77.5131957503344,
      -64.75263988217003,
      -56.91692338050302,
      -47.362783739273894,
      -7.64552190102102,
      -1.830518995463025,
      -7.646547291631789,
      -47.15562542227702,
      -55.94204391326947,
      -61.651456157635934,
      -65.98498203735038,
      -69.51257433942259
    ]
  },
  "harm_bins": {
    "shape": [
      1,
      5
    ],
    "dtype": "float64",
    "values": [
      8.0,
      13.0,
      18.0,
      23.0,
      28.0
    ]
  },
  "harm_amp": {
    "shape": [
      1,
      5
    ],
    "dtype": "float64",
    "values": [
      0.5118782339489737,
      0.000589956141527464,
      0.0001743089433847725,
      8.169269481732626e-05,
      5.120684125700953e-05
    ]
  },
  "harm_freq": {
    "shape": [
      1,
      5
    ],
    "dtype": "float64",
    "values": [
      8.0,
      13.0,
      18.0,
      23.0,
      28.0
    ]
  },
  "thd_ratio": 0.41466909158287796,
  "thd_db": -7.645966693503825,
  "thd_pct": 41.4669091582878,
  "sfdr_db": 55.94204391326947,
  "worst_dbc": -55.94204391326947
}

harmonic_peak_quality

Accesso
registrata nel Job Python
Argomenti
frequenza, ampiezza, opzioni facoltative di rilevamento
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Colonne delle componenti rilevate e fatti THD limitati
Effetto
Picchi armonici locali su un singolo bin da uno spettro di ampiezza esistente
Tipi
vector
Forma dichiarata
paired_real_vectors
Opzioni
fundamental_mode=auto_peak,explicit;fundamental_frequency=positive_number;max_harmonic=2_to_10000;search_half_width_bins=0_to_1000;exclude_dc_bins=0_to_1000
Non finiti
error
Regola unità
explicit_frequency_and_amplitude
gxtxt_api_call("NUMERIC_API_v1", "harmonic_peak_quality", args)
Risultato registrato · harmonic_peak_quality

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  }
]

Esito, anteprima

{
  "component_order": 1.0,
  "component_expected_frequency": 3.0,
  "component_frequency": 3.0,
  "component_frequency_error": 0.0,
  "component_amplitude": 2.0,
  "component_level_db": 0.0,
  "component_percent": 100.0,
  "fundamental_amplitude": 2.0,
  "component_method": "single_bin_peak",
  "component_level_floor": "realmin",
  "thd_ratio": 0.0,
  "thd_pct": 0.0,
  "thd_db": -Infinity,
  "f0": 3.0,
  "fund_amp": 2.0,
  "bin_count": 4.0,
  "resolved_harmonics": 1.0,
  "df": 1.0
}

harmonic_components

Accesso
registrata nel Job Python
Argomenti
ordini, frequenze attese, frequenze rilevate, ampiezze, opzioni obbligatorie fundamental_amplitude
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Colonne delle componenti con livello minimo e riferimento espliciti
Effetto
Livelli relativi delle componenti, con gli identificatori degli ordini e la convenzione per il livello minimo.
Tipi
vector
Forma dichiarata
four_equal_vectors
Opzioni
fundamental_amplitude=nonnegative_number;level_floor=none,realmin;component_method=supplied_component_amplitude,fft_lobe_rss,single_bin_peak
Non finiti
error
Regola unità
explicit_frequency_and_amplitude
gxtxt_api_call("NUMERIC_API_v1", "harmonic_components", args)
Risultato registrato · harmonic_components

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      5.0,
      10.0,
      15.0,
      20.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      5.0,
      10.0,
      15.0,
      20.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  },
  {
    "fundamental_amplitude": 1.0
  }
]

Esito, anteprima

{
  "component_order": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  "component_expected_frequency": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0,
      10.0,
      15.0,
      20.0
    ]
  },
  "component_frequency": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0,
      10.0,
      15.0,
      20.0
    ]
  },
  "component_frequency_error": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "component_amplitude": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  },
  "component_level_db": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      6.020599913279624,
      6.020599913279624
    ]
  },
  "component_percent": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      100.0,
      100.0,
      200.0,
      200.0
    ]
  },
  "fundamental_amplitude": 1.0,
  "component_method": "supplied_component_amplitude",
  "component_level_floor": "none"
}

signal_periodogram

Accesso
registrata nel Job Python
Argomenti
segnali, sample_rate, window/overlap/nfft facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori spettrali binari e fatti comuni dello stimatore
Effetto
Periodogramma del segnale con normalizzazione esplicita e interpretazione spettrale
Tipi
vector,scalar
Forma dichiarata
finite_sequences
Opzioni
nfft=nonnegative_integer;window=vector_or_length;overlap=fraction
Non finiti
error
Regola unità
estimator_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_periodogram", args)
Risultato registrato · signal_periodogram

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  64.0
]

Esito, anteprima

{
  "frequency_hz": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      1.25,
      1.5,
      1.75,
      2.0,
      2.25,
      2.5,
      2.75
    ]
  },
  "psd_real": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      1.4156256867885613e-08,
      3.624430803074741e-05,
      7.280617281268194e-05,
      3.7530619179853204e-05,
      1.3365155793025014e-07,
      2.9034947865509705e-05,
      5.840626803232907e-05,
      2.9737273897297563e-05,
      8.119806422431708e-07,
      6.5043044789330645e-06,
      5.5807990875973325e-06,
      1.6269417298998932e-06
    ]
  },
  "psd_imaginary": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "n": 64.0,
  "sample_rate": 64.0,
  "fft_length": 256.0,
  "bin_count": 129.0,
  "window_length": 64.0,
  "overlap_samples": 0.0,
  "window_count": 1.0,
  "used_sample_count": 64.0,
  "method": "octave_periodogram_window_energy",
  "spectral_operation": "periodogram",
  "sidedness": "onesided",
  "detrend": "none",
  "input_kind": "real",
  "normalization": "window_energy_and_sample_rate"
}

signal_welch

Accesso
registrata nel Job Python
Argomenti
segnali, sample_rate, window/overlap/nfft facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori spettrali binari e fatti comuni dello stimatore
Effetto
Welch del segnale con normalizzazione esplicita e interpretazione spettrale
Tipi
vector,scalar
Forma dichiarata
finite_sequences
Opzioni
nfft=nonnegative_integer;window=vector_or_length;overlap=fraction
Non finiti
error
Regola unità
estimator_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_welch", args)
Risultato registrato · signal_welch

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  64.0
]

Esito, anteprima

{
  "frequency_hz": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      1.25,
      1.5,
      1.75,
      2.0,
      2.25,
      2.5,
      2.75
    ]
  },
  "psd_real": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      1.4156256867910486e-08,
      3.624430803074762e-05,
      7.28061728126818e-05,
      3.753061917985322e-05,
      1.3365155793022325e-07,
      2.9034947865509535e-05,
      5.8406268032329116e-05,
      2.9737273897297577e-05,
      8.119806422431626e-07,
      6.50430447893305e-06,
      5.580799087597332e-06,
      1.6269417298998856e-06
    ]
  },
  "psd_imaginary": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "n": 64.0,
  "sample_rate": 64.0,
  "fft_length": 256.0,
  "bin_count": 129.0,
  "window_length": 64.0,
  "overlap_samples": 32.0,
  "window_count": 1.0,
  "used_sample_count": 64.0,
  "method": "octave_native_welch_window_energy",
  "spectral_operation": "welch",
  "sidedness": "onesided",
  "detrend": "global_mean_over_used_segment_span",
  "input_kind": "real",
  "normalization": "window_energy_and_sample_rate"
}

signal_asd

Accesso
registrata nel Job Python
Argomenti
segnali, sample_rate, window/overlap/nfft facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori spettrali binari e fatti comuni dello stimatore
Effetto
ASD del segnale con normalizzazione esplicita e interpretazione spettrale
Tipi
vector,scalar
Forma dichiarata
finite_sequences
Opzioni
nfft=nonnegative_integer;window=vector_or_length;overlap=fraction
Non finiti
error
Regola unità
estimator_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_asd", args)
Risultato registrato · signal_asd

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  64.0
]

Esito, anteprima

{
  "frequency_hz": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      1.25,
      1.5,
      1.75,
      2.0,
      2.25,
      2.5,
      2.75
    ]
  },
  "asd": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.00011898006920451209,
      0.006020324578521296,
      0.008532653327815552,
      0.0061262238924033145,
      0.0003655838589574535,
      0.005388408657990737,
      0.007642399363572223,
      0.005453189332610558,
      0.000901099684964523,
      0.002550353794855343,
      0.0023623714965257544,
      0.0012755162601471946
    ]
  },
  "n": 64.0,
  "sample_rate": 64.0,
  "fft_length": 256.0,
  "bin_count": 129.0,
  "window_length": 64.0,
  "overlap_samples": 32.0,
  "window_count": 1.0,
  "used_sample_count": 64.0,
  "method": "octave_native_welch_window_energy",
  "spectral_operation": "asd",
  "sidedness": "onesided",
  "detrend": "global_mean_over_used_segment_span",
  "input_kind": "real",
  "normalization": "window_energy_and_sample_rate"
}

signal_cross_psd

Accesso
registrata nel Job Python
Argomenti
segnali, sample_rate, window/overlap/nfft facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori spettrali binari e fatti comuni dello stimatore
Effetto
cross_psd del segnale con normalizzazione esplicita e interpretazione spettrale
Tipi
vector,scalar
Forma dichiarata
finite_sequences
Opzioni
nfft=nonnegative_integer;window=vector_or_length;overlap=fraction
Non finiti
error
Regola unità
estimator_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_cross_psd", args)
Risultato registrato · signal_cross_psd

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.9427934736519953,
      1.6629392246050905,
      1.9903694533443936,
      1.8477590650225735,
      1.268786568327291,
      0.3901806440322572,
      -0.5805693545089242,
      -1.414213562373095,
      -1.9138806714644176,
      -1.9615705608064609,
      -1.5460209067254749
    ]
  },
  64.0
]

Esito, anteprima

{
  "frequency_hz": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      1.25,
      1.5,
      1.75,
      2.0,
      2.25,
      2.5,
      2.75
    ]
  },
  "value_real": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      2.8312513735820973e-08,
      7.248861606149524e-05,
      0.0001456123456253636,
      7.506123835970644e-05,
      2.673031158604465e-07,
      5.806989573101907e-05,
      0.00011681253606465823,
      5.947454779459515e-05,
      1.6239612844863252e-06,
      1.30086089578661e-05,
      1.1161598175194663e-05,
      3.253883459799771e-06
    ]
  },
  "value_imaginary": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "n": 64.0,
  "sample_rate": 64.0,
  "fft_length": 256.0,
  "bin_count": 129.0,
  "window_length": 64.0,
  "overlap_samples": 32.0,
  "window_count": 1.0,
  "used_sample_count": 64.0,
  "method": "octave_native_welch_window_energy",
  "spectral_operation": "cross_psd",
  "sidedness": "onesided",
  "detrend": "global_mean_over_used_segment_span",
  "input_kind": "real",
  "normalization": "window_energy_and_sample_rate"
}
Esito del controllo negativo o del tentativo · signal_cross_psd

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:ScriptBridge:InvalidArguments: Invalid signal_cross_psd arguments"

signal_coherence

Accesso
registrata nel Job Python
Argomenti
segnali, sample_rate, window/overlap/nfft facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori spettrali binari e fatti comuni dello stimatore
Effetto
Coerenza del segnale con normalizzazione esplicita e interpretazione spettrale
Tipi
vector,scalar
Forma dichiarata
finite_sequences
Opzioni
nfft=nonnegative_integer;window=vector_or_length;overlap=fraction
Non finiti
error
Regola unità
estimator_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_coherence", args)
Risultato registrato · signal_coherence

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.9427934736519953,
      1.6629392246050905,
      1.9903694533443936,
      1.8477590650225735,
      1.268786568327291,
      0.3901806440322572,
      -0.5805693545089242,
      -1.414213562373095,
      -1.9138806714644176,
      -1.9615705608064609,
      -1.5460209067254749
    ]
  },
  64.0
]

Esito, anteprima

{
  "frequency_hz": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      1.25,
      1.5,
      1.75,
      2.0,
      2.25,
      2.5,
      2.75
    ]
  },
  "value_real": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0
    ]
  },
  "value_imaginary": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "n": 64.0,
  "sample_rate": 64.0,
  "fft_length": 256.0,
  "bin_count": 129.0,
  "window_length": 64.0,
  "overlap_samples": 32.0,
  "window_count": 1.0,
  "used_sample_count": 64.0,
  "method": "octave_native_welch_window_energy",
  "spectral_operation": "coherence",
  "sidedness": "onesided",
  "detrend": "global_mean_over_used_segment_span",
  "input_kind": "real",
  "normalization": "window_energy_and_sample_rate"
}
Esito del controllo negativo o del tentativo · signal_coherence

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:ScriptBridge:InvalidArguments: Invalid signal_coherence arguments"

signal_frf_h1

Accesso
registrata nel Job Python
Argomenti
segnali, sample_rate, window/overlap/nfft facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori spettrali binari e fatti comuni dello stimatore
Effetto
frf_h1 del segnale con normalizzazione esplicita e interpretazione spettrale
Tipi
vector,scalar
Forma dichiarata
finite_sequences
Opzioni
nfft=nonnegative_integer;window=vector_or_length;overlap=fraction
Non finiti
error
Regola unità
estimator_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_frf_h1", args)
Risultato registrato · signal_frf_h1

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.9427934736519953,
      1.6629392246050905,
      1.9903694533443936,
      1.8477590650225735,
      1.268786568327291,
      0.3901806440322572,
      -0.5805693545089242,
      -1.414213562373095,
      -1.9138806714644176,
      -1.9615705608064609,
      -1.5460209067254749
    ]
  },
  64.0
]

Esito, anteprima

{
  "frequency_hz": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      1.25,
      1.5,
      1.75,
      2.0,
      2.25,
      2.5,
      2.75
    ]
  },
  "value_real": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0
    ]
  },
  "value_imaginary": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "n": 64.0,
  "sample_rate": 64.0,
  "fft_length": 256.0,
  "bin_count": 129.0,
  "window_length": 64.0,
  "overlap_samples": 32.0,
  "window_count": 1.0,
  "used_sample_count": 64.0,
  "method": "octave_native_welch_window_energy",
  "spectral_operation": "frf_h1",
  "sidedness": "onesided",
  "detrend": "global_mean_over_used_segment_span",
  "input_kind": "real",
  "normalization": "window_energy_and_sample_rate"
}
Esito del controllo negativo o del tentativo · signal_frf_h1

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:ScriptBridge:InvalidArguments: Invalid signal_frf_h1 arguments"

signal_frf_h2

Accesso
registrata nel Job Python
Argomenti
segnali, sample_rate, window/overlap/nfft facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori spettrali binari e fatti comuni dello stimatore
Effetto
frf_h2 del segnale con normalizzazione esplicita e interpretazione spettrale
Tipi
vector,scalar
Forma dichiarata
finite_sequences
Opzioni
nfft=nonnegative_integer;window=vector_or_length;overlap=fraction
Non finiti
error
Regola unità
estimator_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_frf_h2", args)
Risultato registrato · signal_frf_h2

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.9427934736519953,
      1.6629392246050905,
      1.9903694533443936,
      1.8477590650225735,
      1.268786568327291,
      0.3901806440322572,
      -0.5805693545089242,
      -1.414213562373095,
      -1.9138806714644176,
      -1.9615705608064609,
      -1.5460209067254749
    ]
  },
  64.0
]

Esito, anteprima

{
  "frequency_hz": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      1.25,
      1.5,
      1.75,
      2.0,
      2.25,
      2.5,
      2.75
    ]
  },
  "value_real": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0
    ]
  },
  "value_imaginary": {
    "shape": [
      129,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "n": 64.0,
  "sample_rate": 64.0,
  "fft_length": 256.0,
  "bin_count": 129.0,
  "window_length": 64.0,
  "overlap_samples": 32.0,
  "window_count": 1.0,
  "used_sample_count": 64.0,
  "method": "octave_native_welch_window_energy",
  "spectral_operation": "frf_h2",
  "sidedness": "onesided",
  "detrend": "global_mean_over_used_segment_span",
  "input_kind": "real",
  "normalization": "window_energy_and_sample_rate"
}
Esito del controllo negativo o del tentativo · signal_frf_h2

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:ScriptBridge:InvalidArguments: Invalid signal_frf_h2 arguments"

window_metrics

Accesso
registrata nel Job Python
Argomenti
finestra, sample_rate e opzioni vuote facoltative
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
guadagni limitati e larghezza di banda equivalente di rumore
Effetto
Guadagno coerente e di potenza di una finestra discreta e larghezza di banda equivalente di rumore
Tipi
vector,scalar
Forma dichiarata
finite_real_nonzero_sum
Non finiti
error
Regola unità
dimensionless_and_hz
gxtxt_api_call("NUMERIC_API_v1", "window_metrics", args)
Risultato registrato · window_metrics

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.002484612317299295,
      0.009913756075728086,
      0.022213597106929717,
      0.03926189406479613,
      0.06088921331488567,
      0.08688061284200266,
      0.11697777844051105,
      0.15088159095696363,
      0.18825509907063326,
      0.22872686806712034,
      0.2718946713234187
    ]
  },
  64.0
]

Esito, anteprima

{
  "n": 64.0,
  "sample_rate": 64.0,
  "coherent_gain": 0.49218749999999994,
  "power_gain": 0.369140625,
  "equivalent_noise_bandwidth_hz": 1.5238095238095242,
  "method": "discrete_window_moments"
}

signal_correlation

Accesso
registrata nel Job Python
Argomenti
primo, secondo e normalizzazione/sample_rate facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
vettori binari dei lag e fatti limitati sul picco
Effetto
Correlazione non centrata di sequenze coniugate, con lag e policy del picco espliciti
Tipi
vector
Forma dichiarata
finite_sequences
Opzioni
normalization=none,biased,unbiased,coefficient;sample_rate=positive_number
Non finiti
error
Regola unità
normalization_dependent
gxtxt_api_call("NUMERIC_API_v1", "signal_correlation", args)
Risultato registrato · signal_correlation

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  },
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      -0.831469612302546,
      -0.47139673682599725,
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088
    ]
  }
]

Esito, anteprima

{
  "value_real": {
    "shape": [
      127,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      -0.46912683269234595,
      -1.2629796557016943,
      -2.0576213209320997,
      -2.4583052792961824,
      -2.141602829601808,
      -0.9858170418938255,
      0.8538753571968297,
      2.9542576918327423,
      4.721364605634719,
      5.553881714323422,
      5.028603201335554
    ]
  },
  "value_imaginary": {
    "shape": [
      127,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "lags": {
    "shape": [
      127,
      1
    ],
    "dtype": "float64",
    "values": [
      -63.0,
      -62.0,
      -61.0,
      -60.0,
      -59.0,
      -58.0,
      -57.0,
      -56.0,
      -55.0,
      -54.0,
      -53.0,
      -52.0
    ]
  },
  "delay_samples": -2.0,
  "delay_seconds": NaN,
  "n": 64.0,
  "n_x": 64.0,
  "n_y": 64.0,
  "lag_count": 127.0,
  "sample_rate": NaN,
  "peak_magnitude": 31.086443400327255,
  "peak_value_real": 31.086443400327255,
  "peak_value_imaginary": 0.0,
  "peak_resolved": true,
  "input_kind": "real",
  "normalization": "none",
  "method": "uncentered_conjugate_sequence_correlation",
  "peak_policy": "first_maximum_absolute_in_ascending_lag"
}

signal_summary

Accesso
registrata nel Job Python
Argomenti
vettore numerico e opzioni vuote facoltative
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Fatti limitati su RMS del modulo, picco, fattore di cresta e componente DC complessa separata
Effetto
RMS e fattore di cresta descrittivi del modulo e DC complessa, senza inferenza sul campionamento
Tipi
vector
Forma dichiarata
nonempty_finite_real_or_complex
Non finiti
error
Regola unità
caller_owned
Token del catalogo
signal_summary
gxtxt_api_call("NUMERIC_API_v1", "signal_summary", args)
Risultato registrato · signal_summary

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  }
]

Esito, anteprima

{
  "n": 64.0,
  "rms": 0.7071067811865476,
  "peak": 1.0,
  "peak_to_peak": 2.0,
  "crest_factor": 1.414213562373095,
  "dc_real": 1.249000902703301e-16,
  "dc_imaginary": 0.0,
  "input_kind": "real",
  "method": "descriptive_complex_magnitude"
}
Interrogazione del contratto · expression-name:signal_summary

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "signal_summary"
]

Esito, anteprima

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/operationByExpressionName: math.numeric API v1: unknown or ambiguous expression operation 'signal_summary'"

unwrap

Accesso
registrata nel Job Python
Argomenti
phase {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Effetto
Srotola la fase (unwrap) con un periodo positivo esplicito
Tipi
vector
Forma dichiarata
vector
Opzioni
period=positive_number;nonfinite=error,ieee
Non finiti
error,ieee
Regola unità
preserve
gxtxt_api_call("NUMERIC_API_v1", "unwrap", args)
Risultato registrato · unwrap

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "vector",
    "value": [
      2.0,
      3.0,
      -3.0,
      -2.0
    ]
  }
]

Esito, anteprima

{
  "values": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      3.0,
      3.2831853071795862,
      4.283185307179586
    ]
  },
  "period": 6.283185307179586
}
Esito del controllo negativo o del tentativo · unwrap

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/unwrap: math.numeric API v1: array operand requires kind and value"

digitalFilter

Accesso
registrata nel Job Python
Argomenti
y b a {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale digitalFilter.
gxtxt_api_call("NUMERIC_API_v1", "digitalFilter", args)
Risultato registrato · digitalFilter

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  },
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.5
    ]
  },
  {
    "shape": [
      1
    ],
    "dtype": "float64",
    "values": [
      1.0
    ]
  }
]

Esito, anteprima

{
  "y": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      2.0,
      4.0,
      6.0,
      8.0,
      10.0
    ]
  },
  "b": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.5
    ]
  },
  "a": 1.0,
  "method": "causal_difference_equation",
  "initial_state": "zero"
}

findPeaks

Accesso
registrata nel Job Python
Argomenti
x y {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale findPeaks.
gxtxt_api_call("NUMERIC_API_v1", "findPeaks", args)
Risultato registrato · findPeaks

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      0.0,
      3.0,
      0.0,
      0.0
    ]
  }
]

Esito, anteprima

{
  "indices": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0
    ]
  },
  "x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0
    ]
  },
  "heights": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0
    ]
  },
  "prominences": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0
    ]
  },
  "widths": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "left_x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      2.5
    ]
  },
  "right_x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.5,
      3.5
    ]
  },
  "n": 2.0,
  "min_height": -1.7976931348623157e+308,
  "min_prominence": 0.0,
  "min_distance": 1.0,
  "distance_mode": "samples",
  "relative_height": 0.5,
  "index_base": 1.0
}

baselineAnchored

Accesso
registrata nel Job Python
Argomenti
x y anchorX anchorY {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale baselineAnchored.
gxtxt_api_call("NUMERIC_API_v1", "baselineAnchored", args)
Risultato registrato · baselineAnchored

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  },
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      5.0
    ]
  },
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      11.0
    ]
  }
]

Esito, anteprima

{
  "x": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "baseline": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  },
  "corrected": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "method": "anchors_linear",
  "degree": NaN,
  "coefficients": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "original_x": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "original_y": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  },
  "source_row_positions": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0
    ]
  },
  "dropped_row_positions": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "index_base": 1.0,
  "original_n": 6.0,
  "selected_n": 6.0,
  "nonfinite_policy": "error",
  "row_order": "original_input_order",
  "estimator": {},
  "schema": "gxtxt.baseline_result.v1"
}

fft

Accesso
registrata nel Job Python
Argomenti
values {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Effetto
Trasformata di Fourier veloce di campioni reali
Tipi
vector
Forma dichiarata
vector
Opzioni
nfft=positive_integer;normalization=backward,forward,unitary
Non finiti
error
Regola unità
preserve
gxtxt_api_call("NUMERIC_API_v1", "fft", args)
Risultato registrato · fft

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      32
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.7071067811865475,
      1.0,
      0.7071067811865476,
      1.2246467991473532e-16,
      -0.7071067811865475,
      -1.0,
      -0.7071067811865477,
      -2.4492935982947064e-16,
      0.7071067811865474,
      1.0,
      0.7071067811865483
    ]
  }
]

Esito, anteprima

{
  "real": {
    "shape": [
      32,
      1
    ],
    "dtype": "float64",
    "values": [
      4.5769509808878765e-17,
      -1.706889689943967e-16,
      -3.452901696849478e-16,
      -1.1569877958261678e-15,
      -7.105427357601002e-15,
      1.8968341036041727e-15,
      1.3456254655311753e-15,
      -6.23450871612659e-18,
      4.898587196589414e-16,
      9.859519480340094e-16,
      -3.6590802621329265e-16,
      -9.1711666428629e-16
    ]
  },
  "imaginary": {
    "shape": [
      32,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      2.7316275314659367e-16,
      5.954493677381473e-16,
      3.1571331175043544e-15,
      -16.000000000000007,
      -1.4633648889847446e-15,
      -1.975631889080273e-15,
      -1.0973498511366174e-15,
      4.440892098500626e-16,
      -6.915376004777101e-16,
      -9.959144497623906e-16,
      9.01882240309927e-16
    ]
  },
  "nfft": 32.0,
  "input_length": 32.0,
  "normalization": "backward",
  "ordering": "fft"
}

ifft

Accesso
registrata nel Job Python
Argomenti
realValues imaginaryValues {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Effetto
Trasformata inversa di campioni split-complex
Tipi
vector
Forma dichiarata
same_length
Opzioni
nfft=positive_integer;normalization=backward,forward,unitary
Non finiti
error
Regola unità
preserve
gxtxt_api_call("NUMERIC_API_v1", "ifft", args)
Risultato registrato · ifft

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      7.689995181559049e-15,
      5.72047617740572e-15,
      -2.9681765870387576e-15,
      2.6778899531490908e-15,
      -3.2061816677410795e-16,
      -1.5987211554602254e-14,
      1.6618196038444433e-15,
      1.0293590726313398e-15,
      -3.1608007884307374e-15,
      4.3137816751321714e-15,
      7.76456316151032e-15,
      -1.5340161705889883e-15
    ]
  },
  {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      8.839130310880738e-15,
      4.571530810171587e-15,
      -8.669183037265637e-16,
      9.152206921238424e-15,
      -32.0,
      -6.228698541996673e-15,
      3.571969280157572e-15,
      -2.850653809804188e-15,
      -6.921666041232253e-15,
      2.8215393314756403e-15,
      3.0061929049256573e-15
    ]
  }
]

Esito, anteprima

{
  "real": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      1.4375084833626865e-17,
      0.4713967368259976,
      0.831469612302545,
      0.9951847266721967,
      0.923879532511287,
      0.6343932841636454,
      0.19509032201612858,
      -0.29028467725446205,
      -0.7071067811865476,
      -0.9569403357322088,
      -0.9807852804032302,
      -0.7730104533627378
    ]
  },
  "imaginary": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      -7.395570986446986e-32,
      5.551115123125783e-17,
      2.7755575615628864e-17,
      2.775557561562896e-17,
      -1.1102230246251558e-16,
      -5.551115123125783e-17,
      -5.551115123125785e-17,
      0.0,
      -1.962615573354714e-17,
      -3.925231146709438e-17,
      9.813077866773569e-18
    ]
  },
  "nfft": 64.0,
  "input_length": 64.0,
  "normalization": "backward",
  "ordering": "sample"
}

analyticSignal

Accesso
registrata nel Job Python
Argomenti
values {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale analyticSignal.
gxtxt_api_call("NUMERIC_API_v1", "analyticSignal", args)
Risultato registrato · analyticSignal

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.47139673682599764,
      0.8314696123025452,
      0.9951847266721968,
      0.9238795325112867,
      0.6343932841636455,
      0.1950903220161286,
      -0.2902846772544621,
      -0.7071067811865475,
      -0.9569403357322088,
      -0.9807852804032304,
      -0.7730104533627374
    ]
  }
]

Esito, anteprima

{
  "real": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      1.4375084833626914e-17,
      0.4713967368259977,
      0.8314696123025451,
      0.9951847266721967,
      0.9238795325112867,
      0.6343932841636454,
      0.19509032201612855,
      -0.290284677254462,
      -0.7071067811865476,
      -0.956940335732209,
      -0.9807852804032303,
      -0.7730104533627375
    ]
  },
  "imaginary": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.9999999999999992,
      -0.881921264348355,
      -0.5555702330196015,
      -0.09801714032956056,
      0.38268343236509017,
      0.7730104533627368,
      0.9807852804032304,
      0.9569403357322092,
      0.7071067811865479,
      0.2902846772544625,
      -0.19509032201612786,
      -0.634393284163645
    ]
  },
  "amplitude": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.9999999999999992,
      1.0,
      0.9999999999999996,
      0.9999999999999998,
      1.0000000000000002,
      0.9999999999999998,
      1.0,
      1.0000000000000002,
      1.0000000000000002,
      1.0000000000000002,
      0.9999999999999998,
      1.0000000000000002
    ]
  },
  "n": 64.0,
  "method": "fft_hilbert_multiplier"
}

frequencyGrid

Accesso
registrata nel Job Python
Argomenti
sampleRate nfft {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale frequencyGrid.
gxtxt_api_call("NUMERIC_API_v1", "frequencyGrid", args)
Risultato registrato · frequencyGrid

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  64.0,
  64
]

Esito, anteprima

{
  "frequency": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0,
      7.0,
      8.0,
      9.0,
      10.0,
      11.0
    ]
  },
  "sample_rate": 64.0,
  "nfft": 64.0,
  "df": 1.0,
  "nyquist": 32.0,
  "representation": "two_sided",
  "ordering": "fft",
  "has_nyquist": true
}

oneSided

Accesso
registrata nel Job Python
Argomenti
realValues imaginaryValues {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale oneSided.
gxtxt_api_call("NUMERIC_API_v1", "oneSided", args)
Risultato registrato · oneSided

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      7.689995181559049e-15,
      5.72047617740572e-15,
      -2.9681765870387576e-15,
      2.6778899531490908e-15,
      -3.2061816677410795e-16,
      -1.5987211554602254e-14,
      1.6618196038444433e-15,
      1.0293590726313398e-15,
      -3.1608007884307374e-15,
      4.3137816751321714e-15,
      7.76456316151032e-15,
      -1.5340161705889883e-15
    ]
  },
  {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      8.839130310880738e-15,
      4.571530810171587e-15,
      -8.669183037265637e-16,
      9.152206921238424e-15,
      -32.0,
      -6.228698541996673e-15,
      3.571969280157572e-15,
      -2.850653809804188e-15,
      -6.921666041232253e-15,
      2.8215393314756403e-15,
      3.0061929049256573e-15
    ]
  }
]

Esito, anteprima

{
  "real": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      7.689995181559049e-15,
      5.72047617740572e-15,
      -2.9681765870387576e-15,
      2.6778899531490908e-15,
      -3.2061816677410795e-16,
      -1.5987211554602254e-14,
      1.6618196038444433e-15,
      1.0293590726313398e-15,
      -3.1608007884307374e-15,
      4.3137816751321714e-15,
      7.76456316151032e-15,
      -1.5340161705889883e-15
    ]
  },
  "imaginary": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      8.839130310880738e-15,
      4.571530810171587e-15,
      -8.669183037265637e-16,
      9.152206921238424e-15,
      -32.0,
      -6.228698541996673e-15,
      3.571969280157572e-15,
      -2.850653809804188e-15,
      -6.921666041232253e-15,
      2.8215393314756403e-15,
      3.0061929049256573e-15
    ]
  },
  "factor": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0
    ]
  },
  "indices": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0,
      7.0,
      8.0,
      9.0,
      10.0,
      11.0,
      12.0
    ]
  },
  "nfft": 64.0,
  "bin_count": 33.0,
  "scaling": "none",
  "has_nyquist": true
}

detrend

Accesso
registrata nel Job Python
Argomenti
values {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Effetto
Rimuove dai campioni una tendenza dichiarata
Tipi
vector
Forma dichiarata
vector
Opzioni
method=none,mean,linear
Non finiti
error
Regola unità
preserve
gxtxt_api_call("NUMERIC_API_v1", "detrend", args)
Risultato registrato · detrend

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  }
]

Esito, anteprima

{
  "values": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -5.0,
      -3.0,
      -1.0,
      1.0,
      3.0,
      5.0
    ]
  },
  "trend": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      6.0,
      6.0,
      6.0,
      6.0,
      6.0,
      6.0
    ]
  },
  "method": "mean",
  "n": 6.0
}

window

Accesso
registrata nel Job Python
Argomenti
name length {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Effetto
Costruisce una funzione finestra
Tipi
string,scalar
Forma dichiarata
scalar_parameters
Opzioni
sampling=periodic,symmetric
Non finiti
error
Regola unità
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "window", args)
Risultato registrato · window

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "hann",
  64
]

Esito, anteprima

{
  "values": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.002484612317299295,
      0.009913756075728086,
      0.02221359710692966,
      0.03926189406479619,
      0.060889213314885726,
      0.08688061284200255,
      0.116977778440511,
      0.15088159095696357,
      0.1882550990706332,
      0.22872686806712028,
      0.2718946713234185
    ]
  },
  "name": "hann",
  "length": 64.0,
  "sampling": "symmetric",
  "power_sum": 23.624999999999996,
  "coherent_gain": 0.49218750000000017,
  "rms_gain": 0.6075694404757368,
  "enbw_bins": 1.5238095238095226
}

complex_unary.phase_rad

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
real_part,imaginary_part
Forma
matching_parts_or_scalar
Unità
operation_specific
Esito
same_as_input
Effetto
Proietta un array split-complex su un array reale
Tipi
scalar,vector,matrix
Forma dichiarata
matching_parts_or_scalar
Espansione
scalar_expansion
Opzioni
nonfinite=error,ieee
Non finiti
error,ieee
Regola unità
operation_specific
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["complex_unary.phase_rad", operands])
Risultato registrato · call:complex_unary.phase_rad

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "complex_unary.phase_rad",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Esito, anteprima

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.1071487177940904,
      0.3217505543966422
    ]
  }
}

complex_unary.phase_deg

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
real_part,imaginary_part
Forma
matching_parts_or_scalar
Unità
operation_specific
Esito
same_as_input
Effetto
Proietta un array split-complex su un array reale
Tipi
scalar,vector,matrix
Forma dichiarata
matching_parts_or_scalar
Espansione
scalar_expansion
Opzioni
nonfinite=error,ieee
Non finiti
error,ieee
Regola unità
operation_specific
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["complex_unary.phase_deg", operands])
Risultato registrato · call:complex_unary.phase_deg

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "complex_unary.phase_deg",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Esito, anteprima

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      63.43494882292201,
      18.43494882292201
    ]
  }
}

digital_filter

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
y,numerator,denominator
Forma
vector
Unità
preserve
Esito
vector
Effetto
Applica un filtro digitale
Tipi
vector
Forma dichiarata
vector
Opzioni
nonfinite=error
Non finiti
error
Regola unità
preserve
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["digital_filter", operands])
Risultato registrato · call:digital_filter

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "digital_filter",
  [
    {
      "kind": "array",
      "shape": [
        6,
        1
      ],
      "real": [
        1.0,
        3.0,
        5.0,
        7.0,
        9.0,
        11.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.5
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        1.0
      ]
    }
  ]
]

Esito, anteprima

{
  "y": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      2.0,
      4.0,
      6.0,
      8.0,
      10.0
    ]
  },
  "b": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.5
    ]
  },
  "a": 1.0,
  "method": "causal_difference_equation",
  "initial_state": "zero"
}

find_peaks

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
x,y
Forma
same_length_xy
Unità
preserve_y
Esito
features
Effetto
Trova picchi locali in una serie campionata
Tipi
vector
Forma dichiarata
same_length_xy
Opzioni
min_height=number;min_prominence=number;min_distance=number
Non finiti
error,omit
Regola unità
preserve_y
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["find_peaks", operands])
Risultato registrato · call:find_peaks

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "find_peaks",
  [
    {
      "kind": "array",
      "shape": [
        6,
        1
      ],
      "real": [
        0.0,
        1.0,
        2.0,
        3.0,
        4.0,
        5.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        6,
        1
      ],
      "real": [
        0,
        1,
        0,
        3,
        0,
        0
      ]
    }
  ]
]

Esito, anteprima

{
  "indices": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0
    ]
  },
  "x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0
    ]
  },
  "heights": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0
    ]
  },
  "prominences": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0
    ]
  },
  "widths": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "left_x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      2.5
    ]
  },
  "right_x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.5,
      3.5
    ]
  },
  "n": 2.0,
  "min_height": -1.7976931348623157e+308,
  "min_prominence": 0.0,
  "min_distance": 1.0,
  "distance_mode": "samples",
  "relative_height": 0.5,
  "index_base": 1.0
}

analytic_signal

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
values
Forma
vector
Unità
preserve
Esito
vector
Effetto
Segnale analitico da un vettore di campioni reali
Tipi
vector
Forma dichiarata
vector
Opzioni
nonfinite=error
Non finiti
error
Regola unità
preserve
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["analytic_signal", operands])
Risultato registrato · call:analytic_signal

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "analytic_signal",
  [
    {
      "kind": "array",
      "shape": [
        64,
        1
      ],
      "real": [
        0.0,
        0.47139673682599764,
        0.8314696123025452,
        0.9951847266721968,
        0.9238795325112867,
        0.6343932841636455,
        0.1950903220161286,
        -0.2902846772544621,
        -0.7071067811865475,
        -0.9569403357322088,
        -0.9807852804032304,
        -0.7730104533627374
      ]
    }
  ]
]

Esito, anteprima

{
  "real": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      1.4375084833626914e-17,
      0.4713967368259977,
      0.8314696123025451,
      0.9951847266721967,
      0.9238795325112867,
      0.6343932841636454,
      0.19509032201612855,
      -0.290284677254462,
      -0.7071067811865476,
      -0.956940335732209,
      -0.9807852804032303,
      -0.7730104533627375
    ]
  },
  "imaginary": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.9999999999999992,
      -0.881921264348355,
      -0.5555702330196015,
      -0.09801714032956056,
      0.38268343236509017,
      0.7730104533627368,
      0.9807852804032304,
      0.9569403357322092,
      0.7071067811865479,
      0.2902846772544625,
      -0.19509032201612786,
      -0.634393284163645
    ]
  },
  "amplitude": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.9999999999999992,
      1.0,
      0.9999999999999996,
      0.9999999999999998,
      1.0000000000000002,
      0.9999999999999998,
      1.0,
      1.0000000000000002,
      1.0000000000000002,
      1.0000000000000002,
      0.9999999999999998,
      1.0000000000000002
    ]
  },
  "n": 64.0,
  "method": "fft_hilbert_multiplier"
}

frequency_grid

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
sample_rate,nfft
Forma
scalar_parameters
Unità
inverse_time
Esito
vector
Effetto
Costruisce le coordinate di frequenza della trasformata
Tipi
scalar
Forma dichiarata
scalar_parameters
Opzioni
representation=one_sided,two_sided;ordering=fft,shifted
Non finiti
error
Regola unità
inverse_time
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["frequency_grid", operands])
Risultato registrato · call:frequency_grid

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "frequency_grid",
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        64.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        64
      ]
    }
  ]
]

Esito, anteprima

{
  "frequency": {
    "shape": [
      64,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0,
      7.0,
      8.0,
      9.0,
      10.0,
      11.0
    ]
  },
  "sample_rate": 64.0,
  "nfft": 64.0,
  "df": 1.0,
  "nyquist": 32.0,
  "representation": "two_sided",
  "ordering": "fft",
  "has_nyquist": true
}

one_sided

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
real,imaginary
Forma
same_length
Unità
preserve
Esito
vector
Effetto
Seleziona una rappresentazione unilaterale della trasformata
Tipi
vector
Forma dichiarata
same_length
Opzioni
scaling=none,amplitude
Non finiti
error
Regola unità
preserve
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["one_sided", operands])
Risultato registrato · call:one_sided

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "one_sided",
  [
    {
      "kind": "array",
      "shape": [
        64,
        1
      ],
      "real": [
        7.689995181559049e-15,
        5.72047617740572e-15,
        -2.9681765870387576e-15,
        2.6778899531490908e-15,
        -3.2061816677410795e-16,
        -1.5987211554602254e-14,
        1.6618196038444433e-15,
        1.0293590726313398e-15,
        -3.1608007884307374e-15,
        4.3137816751321714e-15,
        7.76456316151032e-15,
        -1.5340161705889883e-15
      ]
    },
    {
      "kind": "array",
      "shape": [
        64,
        1
      ],
      "real": [
        0.0,
        8.839130310880738e-15,
        4.571530810171587e-15,
        -8.669183037265637e-16,
        9.152206921238424e-15,
        -32.0,
        -6.228698541996673e-15,
        3.571969280157572e-15,
        -2.850653809804188e-15,
        -6.921666041232253e-15,
        2.8215393314756403e-15,
        3.0061929049256573e-15
      ]
    }
  ]
]

Esito, anteprima

{
  "real": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      7.689995181559049e-15,
      5.72047617740572e-15,
      -2.9681765870387576e-15,
      2.6778899531490908e-15,
      -3.2061816677410795e-16,
      -1.5987211554602254e-14,
      1.6618196038444433e-15,
      1.0293590726313398e-15,
      -3.1608007884307374e-15,
      4.3137816751321714e-15,
      7.76456316151032e-15,
      -1.5340161705889883e-15
    ]
  },
  "imaginary": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      8.839130310880738e-15,
      4.571530810171587e-15,
      -8.669183037265637e-16,
      9.152206921238424e-15,
      -32.0,
      -6.228698541996673e-15,
      3.571969280157572e-15,
      -2.850653809804188e-15,
      -6.921666041232253e-15,
      2.8215393314756403e-15,
      3.0061929049256573e-15
    ]
  },
  "factor": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0
    ]
  },
  "indices": {
    "shape": [
      33,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0,
      7.0,
      8.0,
      9.0,
      10.0,
      11.0,
      12.0
    ]
  },
  "nfft": 64.0,
  "bin_count": 33.0,
  "scaling": "none",
  "has_nyquist": true
}

configure_fft_threads

Accesso
Presente nel catalogo del servizio; verifica il selettore e se la chiamata corrisponde o viene rifiutata.
Argomenti
thread_count
Forma
scalar
Unità
dimensionless_output
Esito
scalar
Effetto
Configura il numero di thread del backend FFT
Tipi
scalar
Forma dichiarata
scalar
Non finiti
error
Regola unità
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["configure_fft_threads", operands])
Risultato registrato · call:configure_fft_threads

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "configure_fft_threads",
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        1
      ]
    }
  ]
]

Esito, anteprima

{
  "requested": 1.0,
  "applied": true,
  "backend": "fftw"
}