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 do I run sample Android SDK apps in Eclipse?

I have gone to File > Import > Android > Existing Android Code but when I select the folder (Am I supposed to select the whole folder?) and attempt to run it in the emulator that I set up, nothing happens in the emulator.
Zach H
  • 257
  • 1
  • 3
  • 15
0
votes
3 answers

How can I set up a t-test that tests whether one sample is larger than another in R?

I was given two sets of measurements of air particulates (24 samples, taken hourly) at two locations. I know how to test whether the means are the same (they are not), but I'm tasked with testing the Ho that the particulate concentration is higher…
0
votes
1 answer

How to develop MvvmCross app with SignalR Chat Technology?

I have a simple app in Android, that uses some features like Services and Broadcast Receivers. It is a simple project, that uses SignalR to make a chat. A basic chat, where the service has the signalR connection and staying listening for any new…
Gabriel Bastos
  • 540
  • 1
  • 7
  • 16
0
votes
1 answer

Android Activity Recognition Sample Bug

So I downloaded the Sample App for 'Recognizing the User's Current Activity' on the android website http://developer.android.com/training/location/activity-recognition.html The problem I'm having is that when I press the 'Start Updates' button, then…
J P
  • 83
  • 1
  • 2
  • 6
0
votes
2 answers

Performance issues in for loop (moving towards vectorization with multiple sample()'s)

I am currently having issues with performance in one of my scripts. I made the script as a result of this question, but I have been unable to increase its performance and figured increasing its performance is a different question than actually…
MattV
  • 1,353
  • 18
  • 42
0
votes
3 answers

Function for sampling between duplicated values in data.frame

So, I have a data.frame object called "DATA". This object contains one column called "Point"(DATA$Point). Since there are some duplicates on this particular column, I would like to build a function that sample only one row among these duplicates in…
Mohr
  • 323
  • 1
  • 3
  • 9
0
votes
1 answer

Hello WebView Example for Android 4.4

Is there an explicit example of code for using WebView using API 19 for Android 4.4 (using Eclipse & ADT)? There seem to have been a lot of changes in 4.4 and I am have been unable to make things work with the examples I have found, Google &…
0
votes
2 answers

Hill Cipher Encryption / Decryption Source Code Java (2 x 2 matrix key)

I have a project to make an encryption and decryption for string input in java. I've been stucked for a week doing some research in it. I really appreciate if you have sample source code or function method for Hill cipher in java that I may use in…
rizqieroway
  • 63
  • 1
  • 1
  • 8
0
votes
1 answer

Which features/classes are implemented in android sample projects

Is there a feature/classes implemented list for the android samples that come with the SDK? http://developer.android.com/samples/index.html E.g. If I am reading up about AdapterView, and want to find out which sample project(s) use this AdapterView…
dowjones123
  • 3,695
  • 5
  • 40
  • 83
0
votes
1 answer

Any working example of compiling a DLL in wxWidgets

I have found some examples of how to compile a DLL in wxWidgets but none of them compile in wxWidgets 2.8.9 Examples, such as, http://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application (here some of the download links don't even work, such as,…
sonu
  • 501
  • 6
  • 11
0
votes
2 answers

Android - are there precompiled samples from SDK available anywhere?

Are there precompiled samples from SDK available anywhere? Or is there any way to quickly compile all samples from given SDK version? UPDATE: it looks like everyone needs to compile examples by itself
tomash
  • 12,742
  • 15
  • 64
  • 81
0
votes
1 answer

Anyone have working code showing how to get a simple widget to display using dot42 for android?

I am new to dot42 (liking it so far) but cannot get a simple widget to work. Rather than get into specific issues I am hitting, does anyone know of sample code showing a working widget using dot42? Just looking for a hello world widget using…
Jon
  • 13
  • 3
0
votes
1 answer

iPhone SOAP Web Services - Sample code on how to use the parsed code from wsdl2objc?

Is there any other documentation available at wsdl2objc besides the Usage Instructions?. The documentation is very limited, it may be because I have never used a wsdl parser before, in that case does anyone have any recommending reading for this?.…
Oscar Gomez
  • 18,436
  • 13
  • 85
  • 118
0
votes
1 answer

Select specific number of values in a bin

I have a data table that contains a column of bins and a column of values. The bins repeat within the data frame. I want to select a pre-determined number of values from each bin. That pre-determined number can be found by looking up the bin number…
SC2
  • 313
  • 8
  • 21
0
votes
0 answers

Bug in pandas DataFrame.append(): resets to UTC timezone at the second call

here is the reproducible problem: import pandas as pd data=range(50) df1=pd.DataFrame(data, index=pd.date_range('2013-8-1…
Mannaggia
  • 4,559
  • 12
  • 34
  • 47
1 2 3
99
100