Questions tagged [sample]

Small part of or a selection from something (code, logs, data etc.), intended to show the structure, style, or nature of the whole.

In statistics, the process of generating random samples is called .

In and some other programming languages, the function sample performs random sampling of a set with or without replacement.

1672 questions
0
votes
1 answer

gnuplot sample value curve with correct time scaling

I have a pure 1D list of any sample values and want to plot the time curve of them. How do I scale the x axis to secs, knowing the time interval and total duration? I have set xdata time set timefmt "%s" set trange [0 : 3.5] plot 'some.dat' using…
anatom13
  • 1
  • 3
0
votes
1 answer

Continuously Numbers Insert to Array Labview

I having this number generator from value 4 to 4.999 each time, I wan to make it into 2 index array such as each time the number generates the first number will store in the first index array, while the second number will store in the second index…
Royal DeviLz
  • 15
  • 3
  • 12
0
votes
3 answers

Import all APIDemos of Android L(5.0) in eclipse

May be a repeated question, but finding hard to import APIDemos of Android L(5.0) in one shot.Sample are downloaded but unable to import. Help is appreciated.
NitZRobotKoder
  • 1,046
  • 8
  • 44
  • 74
0
votes
1 answer

Table whose columns are random samples from an original column

I have numerical data ​​related to clinical information from people with a particular disease recorded in an specific column ('Lab') from Table A. I need to get a Table B with 30 rows and 50 columns. The columns of Table B should be random samples…
Paulo
  • 1
0
votes
1 answer

Allocation of individuals by probability distribution

I've got a problem of allocation of individuals by zones. To simplify this, let's say we have 5 sets, each one with a given (and decreasing) population. S1=1000 S2=100 S3=50 S4=25 S5=5 I'd like to allocate these populations to zones (say, 10 zones…
user3310782
  • 811
  • 2
  • 10
  • 18
0
votes
2 answers

Randomly choose a name from an array (values at beginning of array more likely)

So I have a list of the top 100 boys names in Ireland: Here's my PHP:
Eamorr
  • 9,872
  • 34
  • 125
  • 209
0
votes
0 answers

speed up nested for loops in loop in r

I have two for loops within a loop. I came up with this to fill a list of a list of matrices. My list of matrices are defined below (I have seven lists of each a list of 1000 matrices). I have seven variables (ncol=7) for which I have seven…
j_b
  • 35
  • 6
0
votes
1 answer

Minimum number of rows in data set for accurate predictions

I am running glmnet favoring lasso regression on a 16 core machine. I have some 800K rows with around 2K columns in a sparse matrix format that should be trained to predict probability in first column. This process has become very slow. I want to…
notrai
  • 696
  • 1
  • 5
  • 15
0
votes
2 answers

Java Read sample of rows from file

I need to sample rows from file (file is too big to load to memory). I have this snipper using BufferedReader: BufferedReader br = new BufferedReader(new FileReader(filename)); String line; long counter = 0; while ((line =…
user3628777
  • 529
  • 3
  • 10
  • 20
0
votes
1 answer

How to sample from categorical variables in R data.frame ?

I am trying to sample from an R data frame but I have some problems with the categorical variables. I am not taking a random subsamples of rows but I am generating rows such that the new variables have individually the same distribution of the…
Donbeo
  • 17,067
  • 37
  • 114
  • 188
0
votes
2 answers

Permute groups in a data.frame R

I have a data.frame like this: DqStr <- "Group q Dq SD.Dq 1 -3.0 0.7351 0.0067 1 -2.5 0.6995 0.0078 1 -2.0 0.6538 0.0093 2 -3.0 0.7203 0.0081 2 -2.5 0.6829 0.0094 2 -2.0 0.6350 0.0112" Dq1 <- read.table(textConnection(DqStr),…
Leosar
  • 2,010
  • 4
  • 21
  • 32
0
votes
2 answers

Random Sample with Replacement Loop

I have an R script that allows me to select a sample size and take fifty individual random samples with replacement. Below is an example of this code: ## Creates data frame df = as.data.table(data) ## Select sample size sample.size = 5 ## Creates…
YimYames
  • 99
  • 1
  • 12
0
votes
1 answer

Oracle 12 C missing Sample schemas

I installed Oracle 12C, now I am trying to install sample schemas but some of the scipts for sample schema are missing. Where can I download the scipts for sample schemas of ORACLE 12 C
msbyuva
  • 3,467
  • 13
  • 63
  • 87
0
votes
1 answer

Wikitude missing annotations.jar

after importing Wikitude samples this message appear: "The container 'Android Dependencies' references non existing library 'C:\Android Devepment\ADT Full x86\sdk\tools\support\annotations.jar'" In other projects i didn't received this error, I have…
Alik
  • 19
  • 2
0
votes
1 answer

sampling rows with non-uniform inclusion probabilities in Matlab

I have a matrix M with n rows, and I have an n-dimensional column vector P containing an inclusion probability for each row of M. Note that the probabilities may be different for every row and they do not add to one. I would like to efficiently…
jorgyz
  • 23
  • 3