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

trouble running the WFP msdn sample

I am having trouble running the wfp sample from msdn. I have followed the instructions on msdn site, and after I have entered "net start inspect" in the cmd I dont know what I suppose to see. in visual it still says 'waiting to reconnect' . I am new…
Moriya Samun
  • 3
  • 1
  • 1
  • 4
0
votes
1 answer

Android sample project

I would like to know how to get this sample http://developer.android.com/guide/components/loaders.html#example I'm trying to use a Loader, the link takes me to a "Sample section" and does not start any donwloads, I can try to donwload the samples…
frankelot
  • 13,666
  • 16
  • 54
  • 89
0
votes
1 answer

WCF App using Peer Chat app as example does not work

I converted a VB .Net 3.5 app to use peer to peer WCF using the available Microsoft example of the Chat app. I made sure that I copied the app.config file for the sample(modified the names for my app), added the appropriate references. I followed…
0
votes
2 answers

Matlab create array random samples Gaussian distribution

I'd like to make an array of random samples from a Gaussian distrubution. Mean value is 0 and variance is 1. If I take enough samples, I would think my maximum value of a sample can be 0+1=1. However, I find that I get values like 4.2891 ... My…
B_s
  • 3,026
  • 5
  • 32
  • 51
0
votes
1 answer

A special sample method in Map-Reduce implementation

I have a table with 4*10^8(roughly) records, and I want to get a 4*10^6(exactly) sample of it. But my way to get the sample is somehow special: I select 1 record from the 4*10^8 record randomly(every record has the same probability to be …
Sayakiss
  • 6,878
  • 8
  • 61
  • 107
0
votes
2 answers

Sample codes for PHP Webservice

I am new to PHP,I need to create Webservices using PHP.Can anybody provide me the sample coding and the procedure steps to proceed? Thanks in Advance, Meena
Meena
  • 11
  • 2
0
votes
1 answer

Taking Sample in SQL Query

I'm working on a problem which is something like this : I have a table with many columns but major are DepartmentId and EmployeeIds Employee Ids Department Ids ------------------------------ A 1 B 1 C …
0
votes
1 answer

mlbench example

I heard R is the "de facto" language amongst statistical software developers, and I'm giving it a try. I already know the basics, but it still looks "weird" to me (a C developer). I think it would be very useful to see a working example to see how a…
Johan B.
  • 9
  • 2
0
votes
2 answers

How do I count / display the number of each outcome from a random sample?

I'm taking a sample of size 1000 of different (pet) animals. My code is pet <- sample(c("dog","cat","hamster","goldfish"), 1000, replace = TRUE) I want to see how many times "dog" was selected, "cat" was selected, etc. I've tried summary(pet) but…
ABC
  • 11
  • 1
0
votes
1 answer

jmeter CSV stops sample error

My Jmeter with CSV stops after a sample error, even though the Thread Group is configured with continue. My configuration is Thread Group, While Controler, Http Request, CSV Data set Config. The tests are working. How can I enforce Jmeter to…
0
votes
1 answer

Adding fields to Google Notepad Example (SQLite)

I'm trying to develop an Android application based on Google Notepad example (when you download the zip file, there are 6 folders; I'm using the Notepadv3Solution project). What I want to do is exactly the same application, but with more fields,…
matiszz
  • 556
  • 3
  • 11
0
votes
1 answer

Error message: Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 250, 259

I got this problem when I try to export some data: write.csv(avvik <- cbind(u.s, j.k, k.e), "avvik.txt") I've already understood that the problem probably lies in "your trying to set the sample size from some groups equal to zero". This is what I…
0
votes
1 answer

Python sample without replacement and change population

If you have a list of 100 values, which you want to subset into 3 in the ratio 2:1:1, what's the easiest way to do this in Python? My current solution is to take a sample of the indices for each subset then remove these values from the original…
Stuart Lacy
  • 1,963
  • 2
  • 18
  • 30
0
votes
1 answer

Why does eclipse give me errors when i try to run sample application?

I dont know why the sample application from the android website gives me 300+ errors when i try to run it in ecplise galileo. The application i am trying is Bluetoothchat it is straight from the sdk sample folder so it shouldn't contain any. I have…
ylen
  • 1
0
votes
1 answer

interp1 output not consistent

So I have this function that I modified slightly that takes in a "main" vector and a "base" vector and stretches/compresses the main vector to the dimensions of the base vector. function output = stretch(main,…
ktosayev
  • 17
  • 5