Questions tagged [sampling]

In signal processing, sampling is the reduction of a continuous signal to a discrete signal. In statistics, sampling is the selection of a subset of individuals from within a statistical population to estimate characteristics of the whole population.

This tag should be used for questions related to programming solutions related to sampling.

Sampling can be done for functions varying in space, time, or any other dimension, and similar results are obtained in two or more dimensions. More information in Wikipedia - sampling (signal processing).

For statistical sampling, see Wikipedia - sampling (statistics) for more.

1593 questions
0
votes
1 answer

SAS Drop Condition - Creating a Waterfall for my Sample

Good afternoon, I would like to drop these observations from my waterfall, however only the first observation is shown in the output. I would like to drop all observations in SID and PID, which is why I chose the ridiculous ratio. Please advise.…
Starbucks
  • 1,448
  • 3
  • 21
  • 49
0
votes
1 answer

SAS Drop Condition Output - Not enough variables observed in Output

I am learning drop_conditions in SAS. I am requesting a sample on three variables, however only two observations are retrieved. Please advise! Thank you! data temp; set mydata.ames_housing_data; format drop condition $30.; if (LotArea in…
Starbucks
  • 1,448
  • 3
  • 21
  • 49
0
votes
1 answer

Presence of Holes while simulating Quantification on 3D Meshes

I'm using a database of 3D meshes that have been distored by a Quantification of their 3D coordinates. My question is why there are Holes in theses 3D meshes ? Can you explain deeply because i'm not familiarized with Quantification. (I just know…
Anass
  • 251
  • 2
  • 15
0
votes
0 answers

how to select samples that cover all my clustered samples

I extracted features from video samples and then each feature is normalized (grouped/quantized/clustered) to values from 1-4 or from 1-3. I need to do my experiment in few samples that cover all features quantized values. Example: sample f1…
0
votes
1 answer

Is it possible to draw one line per ten lines in gnuplot?

I have data file like following: #X1 y1 x2 y2 Number 123 567 798 900 1 788 900 87 89 2 .... and I draw my graph using following command plot '~/Desktop/pointcolor.txt' using 1:2:($3-$1):($4-$2):5 with vectors palette nohead notitle here is the…
user3806649
  • 1,257
  • 2
  • 18
  • 42
0
votes
0 answers

Stratified Sampling/Naive Bayesian C++

For my project, I'm required to create three training datasets from a set of about 45000 elements (32000 after cleaning incomplete elements). Each line looks like this: 38, Private, 215646, HS-grad, 9, Divorced, Handlers-cleaners, Not-in-family,…
Homerdough
  • 173
  • 1
  • 2
  • 14
0
votes
1 answer

stratified sampling without k fold

Can I use stratified sampling with 80% train 20% test split the data in python ? I have looked into this and it is for kfold stratified sampling. I'm not sure if I just put 0 as the number of iteration would work, because it is implemented in the…
Monalizza
  • 27
  • 3
0
votes
1 answer

Using a skewed distribution to simulate a participant's "error" in a cognitive task

I am working on a simulation that is able to reproduce people's performance on a cognitive task. The task is to provide an estimate for the time some object is displayed on a screen. What data I have is, the mean error of their responses, the…
Bonbon
  • 1
0
votes
0 answers

Adjust sampling phase for audio

I'm trying to implement an algorithm for symbol timing recovery. Those algorithms are constantly changing the sampling phase a bit, meaning they are not changing the sampling rate, but are shifting the samples in time. For example, if we first…
Turakar
  • 180
  • 2
  • 13
0
votes
1 answer

Sampling Issue with hive

"all_members" is a table in hive with 10m rows and 1 column: "membership_nbr". I want to sample 3000 rows. This is what I have done: hive>create table sample_members as select * from all_members limit 1; hive>insert overwrite table sample_members…
pmjn6
  • 307
  • 1
  • 4
  • 14
0
votes
1 answer

Sampling Frequency sine wave

I am trying to design a bandpass FIR filter using the fdatool in matlab. The input signal is a sine wave at 2kHz corrupted by white noise with zero mean and 0.01 variance. I have the required specs for the FIR filter to enhance the sine wave and…
rwar
  • 3
  • 1
  • 4
0
votes
1 answer

Sampling multiple times for several rows in R

I have a matrix in R, say 500 rows. I want to draw 10 samples of 5 rows each from this matrix, and the result of the sampling should be able to be replicated. How should I write the syntax?
Max
  • 1
  • 1
0
votes
0 answers

numpy: sampling in several dimensions to generate microdata

I have summary-level data of the count of people by age group, city, income and the industry in which they work, or in this case four dimensions. What I would like to is to generate micro-data from these summary counts. If, say, the summary table…
ako
  • 3,569
  • 4
  • 27
  • 38
0
votes
1 answer

Why does me changing the time have an opposite effect on my output graph in MATLAB?

Here is my code: clear all; %% Load the earthquake data file load ECE350_Earthquake_Demo.mat tearth = 0:dt:(length(d)-1)*dt; t1 = tearth'; %% Play the sound of the earthquake sound(d, fs) figure,subplot(3, 1, 1); % 3 subplots in a 3x1…
user3006937
  • 49
  • 3
  • 10
0
votes
1 answer

monte carlo sampling in 6D space

I am writing java code for rigid body superposition of two objects (A and B). Object A is fix in a space while object B is free to move in the space. Goal is to get the best matching fit between A and B. In order to find optimal fit between A and…
user1275607
  • 99
  • 1
  • 10