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
2 answers

How to bootstrap a function after taking a randomly drawn sample without replacement

I have some code that allows me to take two randomly drawn samples from a dataset, apply a function and repeat the procedure a certain number of times (see below code from associated question: How to bootstrap a function with replacement and return…
jjulip
  • 1,093
  • 4
  • 16
  • 24
0
votes
1 answer

Best CMS / Wiki whatever for a Code Samples Website

I need a CMS / Wiki whatever to present our code samples. We use NopCommerce in the frontend of our website (www.crawler-lib.net) which has nearly no support for that. The library documentation is done with Sandcastle and SHFB wich we put on a…
Thomas Maierhofer
  • 2,665
  • 18
  • 33
0
votes
2 answers

Google sample code Error | stopped working

I own Nexus 7 2013(4.4.3) which i used for testing Sample Code from google which are downloaded from LINK. I have latest android SDK with Eclipse and USB Debugging enabled. I have tested created first app Hello World and it worked. but for more…
sam
  • 45
  • 1
  • 5
0
votes
2 answers

Can someone review this exercise? I was right, but want to clarify a few things

1 void myfunc(char** param){ 2 ++param; } int main(){ 3 char* string = (char*)malloc(64); 4 strcpy(string, "hello_World"); 5 myfunc(&string); 6 myfunc(&string); 7 printf("%s\n", string); // ignore memory leak for sake of…
Evan
  • 19
  • 2
0
votes
1 answer

stratified sampling not working correctly in weka

I have a dataset which i applied StringtoWordVector and remove filter and then removed 1 fold using StratifiedFolds This is the samples i have. My random seed is 0. However, When i chained the stringtowordvector with a attributeEval filter then…
aceminer
  • 4,089
  • 9
  • 56
  • 104
0
votes
1 answer

How to bootstrap a function with replacement and return the output

I am trying to take two randomly drawn subsamples from a data frame, extract the means of a column in the subsamples and calculate the difference between means. The below function and use of replicate within do.call should work as far as I can tell,…
jjulip
  • 1,093
  • 4
  • 16
  • 24
0
votes
1 answer

Using Visual Studio Cordova integration CTP with WinJs

Did anyone used the newly launched Visual Studio Cordova integration CTP (http://msdn.microsoft.com/en-us/vstud...) and created a WinJs application . The Sample WinJs application they have is written in Type Script…
S Ravi Kumar
  • 28
  • 1
  • 5
0
votes
1 answer

Sample replication

I have a data frame (d) composed of 640 observations for 55 variables. I would like to randomly sample this data frame in 10 sub data frame of 64 observations for 55 variables. I don't want any of the observation to be in more than one sub…
ePoQ
  • 434
  • 3
  • 18
0
votes
2 answers

random over users considering their posting (mysql)

I need to create a random sample from a table that has users and postings. Each user could have more than one posting. I need to select only 200 from a variable size of users (each day we will have a different total). I created a rand() variable…
GabyLP
  • 3,649
  • 7
  • 45
  • 66
0
votes
2 answers

R_Sample with probabilities

I am having some problem with understanding the prob in sample. For example I want to create a sample data set of size 100 with integers 1,2,3 & 4. I am using a probability of 0.1,0.2,0.3 & 0.4…
rm167
  • 1,185
  • 2
  • 10
  • 26
0
votes
1 answer

iOS app to exchange images/videos between two idevices

I am new to iOS development, I want to write an iOS app that can exchange images between two devices. Can anybody direct me to good tutorial/sample code?
Jhondoe
  • 109
  • 2
  • 7
0
votes
1 answer

C the programming language "Character Counter" example won't run

I'm completely new to C, and I am attempting to run this example code on xcode, but it says build failed. I got the code exact like it is in the book, but it still won't run. #include /* count characters in input; 2nd version */ int…
Kenshin
  • 177
  • 1
  • 9
0
votes
1 answer

WSO2 ESB Sample Service List

I'm having trouble understand how WSO2 Proxy services are viewed. I went through the tutorial to create and use the SimpleStockQuotesServices proxy service, and that went just fine. Then I shut down the ESB, and started it up with sample 0…
ReganJohnson
  • 35
  • 1
  • 1
  • 9
0
votes
2 answers

increase the number of defaulters in a sample

I have a banking dataset which has 5% defaulters and the rest are good( non-defaulters). I want to create a sample which has 30% defaulters , 70% non-defaulters. Assuming my dataset is data and it has a column named "default" signifying 0 or 1, how…
justintime
  • 83
  • 1
  • 8
0
votes
2 answers

Creating and Returning a List of Employees in Java

Good evening all. I'm just trying to create a class with a method that allows you to create a list of users, their ages, and their departments (although I haven't coded the department part yet!). I want to be able to return the list of employees…
user3527961
  • 35
  • 2
  • 5
1 2 3
99
100