Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
Advice
0 votes
5 replies
84 views

How to assign unique elements to different indices?

I've been working on a program that prints out each word, their number of occurrence's and percentage of the number occurrences over total length of the sentence. As you can imagine I had to create a ...
Mehmet emi Sevim's user avatar
0 votes
1 answer
37 views

ESP32 + INMP441: Frequency response measurement fails despite chirp sweep playback from Python

I'm trying to measure the frequency response of an INMP441 microphone using an ESP32 and a Python script. The ESP32 captures 6000 samples via I²S and sends them over serial. I play a 62.5 ms ...
Naffa's user avatar
  • 1
1 vote
1 answer
76 views

STM32L010C6 TIM2 IRQ priority, over capture vs edge detection, classic timer issue

So I want to use a capture compare to measure an input frequency 0.1 Hz to 100 kHz. The peripheral clock is set to 32 MHz to cover the full range and maximise the speed of calculations. At lower ...
Paul S's user avatar
  • 11
0 votes
0 answers
32 views

Dividing sound recording into different frequency bands in Praat

I want to separate my human speaking sounds into different frequency bands, i have lots of files to do this, and I want to divide 1 recording into approximately 5-10 ranges. I want to automatize this ...
LuriaBertani's user avatar
0 votes
1 answer
45 views

How to check in a bunch of .wav files for specific frequencies

I am an amateur in python, and I got an idea to help a colleague. What we need is a program which will listen to a folder of .wav files, and tell me which present a specific range of frequencies (they ...
CyberKar's user avatar
0 votes
0 answers
31 views

How to use low-frequency filtering to process the rising signal

My strain time-domain data shown in figure 1 contains significant high-frequency noise. The segment I focus on is the strain rising phase shown in figure 2, where the amplitude can be truncated at 1e4....
Elliot's user avatar
  • 11
0 votes
0 answers
92 views

Convergence of differential transformation method (DTM) L/h=20

For the past few weeks, I have been trying to determine the natural frequencies of the vibrations of a Timoshenko beam in FGM using the differential transformation method (DTM). To achieve this, I ...
YouTldi's user avatar
1 vote
1 answer
69 views

Excel power pivot - DAX count occurrences of the outcome of a frequency calculation

I have been struggling with a problem in excel power query/DAX and have finally given up. Hope someone here has a suggestion how to proceed. If it is solvable at all. I have a table with registration ...
Anders Andersen's user avatar
0 votes
1 answer
67 views

how to compare lists with their frequency

I'm interested in finding similarities between two lists. I have the count of duplicates in the first column, and the pattern is in the second column. What would be the most logical way to compare ...
rollTHERoad's user avatar
0 votes
0 answers
39 views

How can I plot information from Adafruit ADS1115 smoothly on matplotlib using python

See attached my waveform of input to channel of ADS1115, my code, and my output that I am getting I cannot get the output matplotlib waveform to plot smoothly like my input waveform from oscilloscope ...
Marc Rainey's user avatar
3 votes
4 answers
157 views

What is the most simple way to label a data.table frequency chart in R?

I'm curious as to what the easiest way to label a data.table frequency table is. For example, say I have a data.table (dt1) with the following column (animals) being c(1,1,2,2,2,2,3,3,3,3,3,3) and I ...
DualEncoded's user avatar
1 vote
2 answers
65 views

Change Datetime Frequency in a df Column - Pandas

If I have df with a column like 'B' below, but I want to change the frequency of the column B, to 1 business day instead of 3 business days, so that the output df will have 7 entries, instead of 3; ...
Mohamad Osama's user avatar
3 votes
2 answers
116 views

Largest sum of consecutive values in row, but is it still consecutive in the cell of the last column?

I have a row of non unique values in Excel 365, some cells are blank. I would like to scan the row and count consecutive cells where values exist. W1 W2 W3 W4 W5 W6 W7 W8 1 2 1 1 2 3 So I've used ...
topstuff's user avatar
  • 159
0 votes
0 answers
36 views

Transforming the Frequency of Time Series Data

Please I have a challenge that I need your insights on. I am going to be running a time series analysis on a set of datasets: CDS spreads, GDP and other macro economic datasets are in Monthly ...
DomU49's user avatar
  • 1
1 vote
2 answers
105 views

Mismatch between table output numbers and Venn diagram numbers

I have the following R code, borrowed here, that generates a reproducible tibble table: # Install/load packages only if needed # ************************************ if (!require("pacman")) ...
pdeli's user avatar
  • 534
1 vote
2 answers
131 views

Create a histogram of aging

I am looking to create a histogram of aging. By aging, I'm referring to the accounting report of tracking an asset like accounts payable into bins of 30 days, 60 days, 90 days, and 120+ days old. In ...
mperedithe's user avatar
-3 votes
1 answer
67 views

How to add another column to a previous calculation showing frequency of values per year per month using dplyr in R [duplicate]

Issue I have a large data frame (388 x 729) and I am trying to calculate the frequency of new daffodil bulbs (numeric column) per month (factor column) per year (numeric column) over 14 years. I have ...
Alice Hobbs's user avatar
  • 1,247
1 vote
1 answer
66 views

Quanteda overlap frequency reporting problem

I’m hoping to identify an apparent miscalculation due to overlapping terms. In the dummy data set and code below, which uses the same code on the actual data, the analysis works as expected. “...
bgreen's user avatar
  • 87
0 votes
0 answers
51 views

How to calculate the total number of different frequencies that are present in audio signal spectrum?

How to calculate the total number of different frequencies that are present in audio signal spectrum? Is that possible? Linux platform.
Lexx Luxx's user avatar
  • 284
1 vote
0 answers
70 views

Can someone explain this magic number used in this formula for converting between Amiga periods and frequencies?

I'm working on implementing an old style music tracker for S3M modules. I'm already most of the way through it, and part of what I needed to do was figure out how to convert between periods — the ...
Bri Bri's user avatar
  • 1,992
0 votes
0 answers
39 views

Unity Get Spectrum Data reduces resolution on Android, vs PC

I have an Android application in Unity, which visualizes the audio that is played in AudioSource. It works very well in the editor and in building for desktop, but after building for Android, it ...
Moshe Dayan's user avatar
1 vote
2 answers
67 views

Tabulate frequency of elements within a matrix row

Data Consider the following matrix. set.seed(1) base <- letters[1:4] mmm <- matrix(sample(base, size=20, replace=TRUE), nrow=4) print.table(cbind(base, "|", data=mmm)) # base ...
clp's user avatar
  • 1,602
1 vote
2 answers
181 views

What is the best practice to calculate global frequency of list of elements with exact orders in python within multiple pandas dataframe?

Let's say I have the following datafarme df1 corresponding to user1: +-------------------+-------+--------+-------+-------+----------+----------------+ | Models | MAE | MSE | RMSE | ...
Mario's user avatar
  • 2,084
-1 votes
2 answers
2k views

Length of Longest Subarray With A Consistent Frequency

Given an array A, a subarray of A is called "consistent" if the maximum occurrence of all elements in the subarray is equal to the minimum occurrence of all elements in the subarray. Find ...
Emmanuel Pierre's user avatar
2 votes
4 answers
67 views

Tabulate a column in data.frame ignoring the order of elements in it in R

In my DATA below, I wonder how to table() the variable lang_comb ignoring the order? For example, "english spanish french" and "french english spanish" are to be considered ...
Simon Harmel's user avatar
  • 1,489
0 votes
0 answers
84 views

How to resolve differences between FFT frequency and real frequency after using scipy.fft.fft() in Python?

I am trying to perform a Fourier analysis on a randomly generated linear combination of sinusoids. I am operating on a timescale from 0 min to 860 min (i.e. a total of 861 timepoints), and my ...
user25509075's user avatar
0 votes
0 answers
69 views

MATLAB: Filter for a specific frequency in a time-based signal

I am trying to filter for a frequency of e.g. ~3.1Hz in a time-based signal which contains various frequency components (including the ~3.1Hz). I tried to build a bandpass filter with a lowpass and a ...
Laurin76's user avatar
1 vote
2 answers
103 views

R frequency table, how do I count observations only if first observation by other variable

I have a table in which I need to count the number of patient having a certain condition, or if not or if no info is available. Ideally, for each patient, there is the same information about cond in ...
joejoe9's user avatar
  • 107
0 votes
2 answers
207 views

Creating a frequency schedule that updates dynamically based on start date & cadence

I'm looking to create a frequency schedule that highlights when each activity should be performed throughout the year based on the dropdown cadence (daily, monthly, quarterly, semi-annually) and the ...
Brian Parker's user avatar
2 votes
4 answers
105 views

Transpose Multiple Columns in SAS

I have a dataset which looks like this: Account Number 6m 7m 8m 9m 10m 11m 1 Better X < 10 X < 10 Better X < 30 X < 30 2 X < 10 ...
MLPNPC's user avatar
  • 525
0 votes
1 answer
97 views

Use Array in SAS proc freq?

I am doing an exploratory analysis to see if any variables are associated with someone "switching" from one type of treatment to another. I am running fisher's exact tests (because of a ...
Ryan's user avatar
  • 101
1 vote
0 answers
139 views

need to check frequency of voice from microphone in flutter

I am new to flutter I need to get frequency of voice from microphone, Below is code I used but didn't get any needful answer. I used a package called fftea for fourier transformation in flutter. I ...
Yash's user avatar
  • 165
0 votes
1 answer
122 views

Frequence Scatter plot?

I have a frequence table for females and males. t1 <- table(PainF$task_duration) t2 <- table(PainM$task_duration) Females 30 40 45 60 65 70 75 78 80 90 95 100 101 120 144 150 180 185 ...
Large Simpsons's user avatar
1 vote
0 answers
50 views

How to identify the proportion of frequency reduction of a process caused by AVX instructions?

Different types of AVX instructions can cause a decrease in CPU frequency[1]. The proportion of this decrease can be evaluated through the PMU events called `CORE_POWER.LVL0/1/2_TURBO_LICENS. However, ...
Frontier_Setter's user avatar
0 votes
0 answers
154 views

English character frequency calculation

I've written code to perform character frequency analysis on strings by taking the standard ETAOIN SRHD... frequencies of english character occurrence and I have two questions. Is this the most ...
Austin Wile's user avatar
0 votes
2 answers
66 views

Different class intervalls (breaks) according to specific values in the histogram

I would like to create class intervals in the histogram according to the Body mass index (BMI) classification, and color the columns. The categories are: Underweight (Severe thinness) < 16.0 -> ...
Marcel 's user avatar
  • 313
0 votes
1 answer
79 views

SAS Macro to iterate proc freq using a list

I have a dataset where I have to run frequencies on a dozen variables for a dozen organizations. This is very easy with proc print but I don't want to have to update the WHERE statement a dozen times ...
Brian_p's user avatar
  • 15
0 votes
2 answers
99 views

Distort frequency spectrum in python signal

I have a signal with clear frequency peaks, I want to distort the signal that the frequency peaks are not distinct but much broader (see picture). I'm working with python and don't have any idea how ...
Sonne's user avatar
  • 45
0 votes
0 answers
98 views

Achieve Similar Arrays in Minimum Number of Steps

I am trying to solve one of my assignment problems. The following is the problem statement- Given an array A and a target array, your task is to make A similar to the target array. Two arrays are ...
Parth's user avatar
  • 1
0 votes
1 answer
68 views

I want to do FFT conversion and plot the results as an example, but it doesn't work

import numpy as np import matplotlib.pyplot as plt # sampling rate dt = 0.01 # 0.01초 간격 # rpm raw data data1 = np.array([735, 743, 744, 739, 734, 752, 750, 745, 739, 751, 751, 745, 740, 757, 755, ...
wonsik lee's user avatar
0 votes
1 answer
142 views

Saving freq() object into data frame

I am looping a few frequency tables with the freq() command in summarytools and printing the results. In doing so, I noticed that when I am trying to save the freq() object without missing values and ...
Kristine's user avatar
  • 183
0 votes
0 answers
60 views

mapping arbitrary frequency to midi note using audiokit microtonality

I am trying to map midi notes (defined in one octave) to change the output of an example application (dunneaudiokit synth). Is there a way to change the mapping without getting into the guts of the ...
dix's user avatar
  • 1
1 vote
1 answer
39 views

Finding the frequency of the order of four different tests in R

I have a data frame in R from a study where four different tests, say test 1 to test 4, took place in any order. There was the suggestion to carry out the tests in the suggested order from 1 to 4, but ...
TheGeekGreek's user avatar
0 votes
2 answers
84 views

How to get closest value in array and interpolate real

i have a text file with 10.000 lines and this content: 16500000000 -11.6560625775 16600000000 -11.99428283515 16700000000 -12.06410749998 16800000000 -11.81220239236 I want to create a function in c# ...
Markus.H1's user avatar
0 votes
1 answer
357 views

How do I calculate frequency and descriptive statistics using summarytools for all columns in dataframe when applying grouping and weights?

In R, I have a dataframe (mydf) that looks like: weight gender var1 var2 100 M 1 3 800 F 2 8 10 F 2 9 150 F 4 10 (But with 100 columns (var3, var 4 etc) and 2000 rows). I want to calculate the ...
Caragh's user avatar
  • 69
0 votes
1 answer
513 views

Power BI DAX: Calculate mode based on conditio

Name Day Sales "Global" mode Mode, gruoped on "Name" Matt 1 100 100 100 Matt 2 100 100 100 Matt 3 100 100 100 Matt 4 100 100 100 Matt 5 100 100 100 Matt 6 100 100 100 Matt 7 95 100 ...
Martin Øyn's user avatar
0 votes
0 answers
122 views

The columns containing relative abundance taxa does not sum to 1 in R but the same data does in excel

I have a data file with 95 columns and many rows (over 14000). I have calculated the relative abundance and now want to verify that sum of each column is 1. But it does not work on R. I tried to test ...
Hebe's user avatar
  • 9
1 vote
1 answer
105 views

FIltering out chaotic noise from breathing sensor signal

I've got a signal from a respiratory sensor (chest strap, piezo sensor) and I need to extract (live) the breath-per-minute value. Now for a nice steady signal this is not such a problem, the problem ...
Dutchottie's user avatar
0 votes
1 answer
255 views

R: relative frequency in a table

I am working with quantil binomial and runif functions with R to simulate values. My goal is get relative frequency with this function. The frequency that I get are ok, but the the relative frequency ...
Rodrigo Badilla's user avatar
0 votes
1 answer
48 views

R timeseries 10minutes intervall

I have a large dataset (temp) with measurements every ten minutes over several years. The column "value" also contains NAs. How can I create a proper timeseries-object? I tried to use the ts ...
kipepeo's user avatar

1
2 3 4 5
58