Questions tagged [downsampling]
The downsampling tag has no usage guidance.
230
questions
-2
votes
0
answers
42
views
std::vector::push_back() producing "double free or corruption (out)" error [closed]
I have a function that takes an input vector data and extracts every down_factor elements and appends them to an output vector downsampled. The program runs fine for a few iterations then produces a ...
0
votes
1
answer
32
views
Downsampling and aliasing effect in python st.resample
Does downsampling using stream.resample () in Python introduce aliasing effect?
I want to investigate a signal below 4 Hz. It has the original sampling rate of 100 Hz but I need to downsample it as ...
0
votes
0
answers
32
views
How to downsample a 2 dimensions array using python?
I'm trying to rebuild a project using python, one step of it needs me downsample a two dimensions array into a smaller one.
Array like:
[[1.0, 2.0, 1.0, 3.0, ..., 2.0]
[2.0, 4.0, 6.0, 8.0, ..., 3.0]
...
0
votes
1
answer
37
views
Apply InfluxDB 1.x continuous query against multiple tables/columns?
For a monitoring project I have created a setup that uses InfluxDB 1.8. Because of compability reasons, using InfluxDB 2.x is not possible.
In order to save disk space, I am trying to downsample data ...
0
votes
2
answers
79
views
Downsample tensor
I need to downsample a tensor by a factor 2, it is a 1-D tensor:
I don't know how can I do it
0
votes
0
answers
18
views
Image Downscaling
I need a bit of a clarification on this Process.
I am trying to downsize from 6000 * 4000 pixel to 960 * 960 for website space purpose using MagickImageMagic.
Would doing the same from 2000 * 2000 to ...
0
votes
1
answer
135
views
InfluxDB: keep min/max values while downsampling
I am pretty new to InfluxDB. I have an application that collects data with 20kHz, which is written to the database.
At some point I need to query/show this data. Currently I achieve this with:
from(...
1
vote
1
answer
41
views
Conditional downsampling over a data frame
I am working on a data frame that looks like this:
Id feat1 value
c1 c22 51
c2 c12 83
c3 d31 42
c4 a19 110
c5 d44 56
. . .
. . .
. . .
The ...
0
votes
1
answer
24
views
Timescaledb bi-interpolate without downsampling
There're two time series a(t TIMESTAMP,v REAL) and b(t TIMESTAMP,v REAL). How can I do math on two of them (e.g. a*b) WITHOUT downsampling (time bucket)?
The way I imagine is:
t = merge a.t b.t
va = ...
0
votes
1
answer
254
views
Downsampling of timeseries results in artificial flattening of the power spectral density. Should I first apply low pass filter?
Edit: I have tried to incoroporate @dankal444 script. Even though it does indeed remove the high frequencies as shown in the second figure, I still get a flatter spectrum at high frequencies in the ...
0
votes
0
answers
63
views
how to downsampling on multi label dataset
i have a imbalanced dataset on which i am doing multi-label classification. And precision and recall for some of the labels are really low.
Any possible reason for that? i think it may cause by ...
0
votes
0
answers
123
views
Using Tensorflow dataset and rejection_resample() for undersampling image data
I am reading images out of a directoy. The structure is,
-+-No Findings/
|
+-Fibrosis/
I have 10 times the number of 'No Findings' images as 'Fibrosis' images. I want to undersample 'No ...
0
votes
1
answer
650
views
Downsampling time series data in pandas
I have timeseries data that looks like this:
datetime generation
2022-01-31 00:00 1234
2022-01-31 00:15 4930
2022-01-31 00:30 2092
2022-01-31 00:45 20302
2022-01-31 01:...
0
votes
0
answers
82
views
Best plot downsample rate
When using an algorithm like Largest-Triangle-Three-Buckets or similar you can declare the number of buckets. Alternatively you could break up time-series data to ensure bucket sizes remain consistent....
0
votes
0
answers
329
views
open3d.geometry.PointCloud.voxel_down_sample(), mostly gives the Error: voxel_size is too small
I was downsizing a point cloud(~105000 points) to a voxel_size of 0.23. For few point clouds it works but mostly this error shows up.
1
vote
2
answers
147
views
Python: Resizing array by removing nth element
I have some dynamically created arrays that have varying lengths and I would like to resize them to the same 5000 element length by popping every n element.
Here is what I got so far:
import numpy as ...
-1
votes
1
answer
69
views
Timeseries denoising and downsampling
What are some different denoising techniques for time series? What conditions have to be in place to downsample a time series without loss of information?
0
votes
1
answer
650
views
Influxdb2 : How to downsample data in a different measurement in same bucket?
I would like to create aggregation measurement into same bucket with monthly data. At the moment I have a task with this query:
import "strings"
option task = {name: "MTU Monthly",...
0
votes
2
answers
211
views
Downsample time series whenever abs(difference) since the previous sample exceeds threshold
I have a timeseries of intraday tick-by-tick stock prices that change gradually over time. Whenever there is a small change (e.g. the price increases by $0.01), a new row of data is created. This ...
0
votes
0
answers
170
views
Downsample array based on sliding window indices
I am trying to downsample or reduce the resolution of a 3D array only on the first two axes. For example, if the array size is 40x50x300, downsampling it with a degree of 2 will make it 20x25x300
for ...
0
votes
1
answer
76
views
Eliminate hairlines from a vector graphics by converting to oversampled bitmap and then downscaling - How with ImageMagick?
I used Apple Numbers (a Spreadsheet app with styling options) to create a UX flowchart of various user interfaces of an app.
Apple Numbers has a PDF export option.
The problem is that even though ...
0
votes
0
answers
126
views
Multiclass Sampling Strategy
Scenario :
Currently I am working on multiclass classification problem. I have 2 million historical dataset of having 180 classes and need to create model which will predict the classes accurately. I ...
1
vote
0
answers
69
views
Crossfilter for downsampling data in dc.js plot
I'm trying to downsample an array that has ~10,000,000 points based on the current zoom state.
The downsampling mechanism is through downsample module, using LTTB function; below is a simple example ...
0
votes
1
answer
244
views
How to convert two ECG measurments to HR with frequency 20 hz
I have data from two ECG sensors taken at a frequency of 50hz.
I want to convert this to an HR signal with a frequency of 20hz. I have tried a solution with heartpy, but I can't get good values for HR ...
0
votes
1
answer
94
views
How to downsample/aggregate R rasters with custom function to produce multiple output rasters?
I have a rather complex function that I'm using to compute aggregates of raster-cells (downsampling). In this function I'm distuingishing between multiple cases, where the case determines which ...
1
vote
1
answer
412
views
Is there a way to set up downsampling option when fetching an image with SDWebImage?
This is how I set images to UIImageView from a web url:
import UIKit
extension UIImageView {
private var storage: Storageable {
Assembler.shared.resolve(Storageable.self)!
}
...
0
votes
1
answer
194
views
python - downsampling with resample (D) skips days that don't have 00:00:00 data
i need to downsample a dataframe from hourly to daily. This is quite straightforward using pandas but I'm facing a problem that I'm failing to resolve.
Data frame looks like this:
datetime
prod
2018-...
1
vote
0
answers
253
views
Time Series Downsampling/Upsampling
I am trying to downsample and upsample time series data on MonetDB.
Time series database systems (TSDS) usually have an option to make the downsampling and upsampling with an operator like SAMPLE BY (...
-1
votes
1
answer
318
views
averaging each two image in 10000 images array in python
I am new in python.
I wonder if you can give me an idea on how I can average each successive two images array in matrix of 10000 images. I want to down sample the cadence of my film.
I found the ...
1
vote
1
answer
269
views
Downsampling data frome 25hz to 10hz
I have some time series data sampled at 25hz (25 samples per second)
time_in_secconds data_vals
199.655 0.549038
199.696 0.83472
199.736 0.478569
199.776 0.114157
199.817 0.217603
...
-1
votes
1
answer
70
views
randomly sampling of dataset to decrease the values in the dataset [closed]
I am currently trying to decrease the values in a column randomly according to a given sum.
For example, if the main data is like this;
ID Value
1 4
2 10
3 16
after running the code the ...
0
votes
1
answer
235
views
Downsample time series to N equally spaced points
Let's say I have a list of of timestamps and associated indices of some event. I have M timestamps which are not evenly spaced. I would like to downsample this list to N < M in such a way that my ...
1
vote
1
answer
763
views
how to Upsample and Downsample ECG signals in python or MATLAB?
I have an ECG signal having 500 Hz frequency and a signal having 257 HZ frequency. To process both signals i want both signals having frequency 300 Hz. So how to downsmaple the first ECG signal to 300 ...
0
votes
1
answer
155
views
How to downsample a sequence x by an integer factor M with a single statement such as for loop or conditional statements
I have already learning to use downsample() function inside Matlab. However, I am wondering if it can be implemented using basic for loop or if statement. Can anyone help me?
P.S Below is the code I ...
3
votes
2
answers
158
views
Misconceptions about the Shannon-Nyquist theorem
I am a student working with time-series data which we feed into a neural network for classification (my task is to build and train this NN).
We're told to use a band-pass filter of 10 Hz to 150 Hz ...
0
votes
1
answer
764
views
wave write function not working, what am I doing wrong?
I am trying to halve the existing sampling rate of a folder full of .wav files. This is the only way I have found to do it but it is not working. The read part works just fine up until f.close(), then ...
0
votes
1
answer
852
views
Downsample the Time Series data of Accelerometer and Gyroscope
I have time series data for Physical Activities. The data was recorded at 50hz frequency. But now I want to down sample the data at 20hz because I want to train and predict model at 20hz.
Is there an ...
1
vote
1
answer
388
views
Downsample from 1second to 1minute is creating new rows using resample pandas
I am new to python programming. I have a timeseries dateset in seconds which starts at 9.15am and ends at 3.30pm each day. I am trying to downsample it to 1 min timeframe.
Example of original data set:...
3
votes
0
answers
224
views
How can I do a stratified downsampling?
I need to build a classification model for protein sequences using machine learning techniques. Each observation can either be classified as either a 0 or a 1. However, I noticed that my training set ...
1
vote
1
answer
177
views
When decoding a jpeg how would I reverse chrominance downsampling in matlab?
Hi trying to make a simple jpeg compressor which also decompresses the image. I use the following code to downsample the chrominance of an image for the first step of jpeg compression.
resampler = ...
2
votes
0
answers
254
views
How to resample nonperiodic signal with scipy?
The documentation for scipy.signal.resample says that it assumes the function is periodic. Is interp1d the equivalent function for nonperiodic signals? If not, what is?
I've spent a lot of time ...
0
votes
1
answer
1k
views
open3d voxel_size too small : down sampling not working for e57 binaries
I'm trying to downsample a point cloud. I have 2 data formats for different parts of my data.
The .bin files cause no problems, but when I'm trying to downsample the .e57 files I encounter a strange ...
0
votes
2
answers
293
views
How to repeat downSample in R?
I'm not sure what approach to take to this problem (I'm new to both R and statistical analysis). I have a highly imbalanced class in my data set:
PCL_Sum n
* <dbl> <int>
1 ...
2
votes
0
answers
76
views
How do the following lines of code actually downsample chrominance of an image?
I'm trying to make a jpeg compressor and found a bit of code which supposedly donwsamples the chrominance of an image but I don't understand how it achieves this.
x = 2
pic = imread("picture.jpg&...
1
vote
1
answer
54
views
Filter table rows Matlab by matching non-identical numbers as close as possible
This may have a simpler solution than my current approach, so any recommendations welcome!
I have a MATLAB table (38327x17) of char/double variables imported from .csv with readtable(), double ...
1
vote
0
answers
58
views
Downsample to equalize the counts for pairs of factor levels?
Suppose you have a factor variable whose level labels come in pairs
(such as 'a1' and 'a2', 'b1' and 'b2', etc.), and these pairs have unequal n-sizes.
x <- factor(c(rep("a1", 10), rep(&...
3
votes
2
answers
882
views
Downsampling continuous variable to uniform distribution
Given a distribution, let's say, a gaussian:
import pandas as pd
import numpy as np
gaussian_distribution = np.random.normal(0,1,10_000)
This sample looks like this:
What I want to do is to ...
0
votes
1
answer
4k
views
Picture size 0x0 is invalid: trying to downsample 4k raw video into 1080 using ffmpeg
ffmpeg -i CityAlley_3840x2160_50fps_8bit.yuv -vf scale=1920:1080 CityAlly.yuv
But I got the error:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (...
1
vote
1
answer
525
views
How do I downsample a Pandas dataframe linearly to another column set?
How do I down-sample (linearly) one dataframe (counts at some distribution of diameters, logged at the lower bound, so the first entry is 0 counts between 296.54 and 303.14 nm, the second entry is 1 ...
0
votes
1
answer
131
views
find overlap and downsample scatter plot
I have huge data that consist of points(x,y) and need to present in a scatter plot.
To find overlap and remove invisible differences between the same point, I wrote bellow code :
void DownSampler::...