search for: frequenc

Displaying 20 results from an estimated 5776 matches for "frequenc".

Did you mean: frequency
2011 Nov 08
3
window?
Can someone enlighten me on why the following doesn't work? setwd('C:/Temp/R') d <- rep(1:53,2) (s <- ts(d, frequency=53, start=c(2000,10))) n <- length(s) k <- n%/%3 for(i in (n-k):n) { st <- c(start(s)[1] + (start(s)[2] + i)%/%frequency(s), (start(s)[2] + i) %% frequency(s)) ed <- c(start(s)[1] + (start(s)[2]+k+i)%/%frequency(s), (start(s)[2]+i+k) %% frequency(s)) x...
2005 Aug 19
2
FFT, frequs, magnitudes, phases
Hi, I'm in dire need of a fast fourier transformation for me stupid biologist, i.e. I have a heartbeat signal and would like to decompose it into pure sin waves, getting three vectors, one containing the frequencies of the sin waves, one the magnitudes and one the phases (that's what I get from my data acquisition software's FFT function). I'd be very much obliged, if someone could point out which command would do the job in R. Thanks! Wolfgang
2012 Mar 04
1
Changing the frequency of time series
I know how to do this when creating the time series variable in one expression, e.g. valuesTS1<-ts(values,start=2000); # Frequency naturally defaults to 1 How can I specify the frequency of a time series? > values=c(12,34,65,12); > values<-ts(values); > frequency(values); [1] 1 > start(values) [1] 1 1 > frequency(values)<-12; Error in frequency(values) <- 12 : could not find function "frequency...
2010 Jun 23
1
Generation of binomial numbers using a loop
Dea'R' helpers I have following data - prob = c(0.1, 0.2, 0.3, 0.4, 0.5) frequency = c(100, 75, 45, 30, 25) no_trials = c(10, 8, 6, 4, 2) freq1 = rbinom(frequency[1], no_trials[1], prob[1]) freq2 = rbinom(frequency[2], no_trials[2], prob[2]) freq3 = rbinom(frequency[3], no_trials[3], prob[3]) freq4 = rbinom(frequency[4], no_trials[4], prob[4]) freq5 = rbinom(frequency[5], no_tr...
2008 Sep 09
4
Help with 'spectrum'
For the command 'spectrum' I read: The spectrum here is defined with scaling 1/frequency(x), following S-PLUS. This makes the spectral density a density over the range (-frequency(x)/2, +frequency(x)/2], whereas a more common scaling is 2? and range (-0.5, 0.5] (e.g., Bloomfield) or 1 and range (-?, ?]. Forgive my ignorance but I am having a hard time interpreting this. Does this m...
2004 Jul 09
2
Simple 'frequency' function?
Hi, I have designed the following function to extract count frequencies from an array of integers. For example... # Tipical array x <- cbind(1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,6,7,22) # Define the frequency function frequency <- function(x){ max <- max(x) j <- c() for(i in 1:max){ j[i] <- length(x[x==i]) } return(j) } fre &lt...
2017 Nov 09
2
Calculating frequencies of multiple values in 200 colomns
Always reply to the list. I am not a free, private consultant! "For example, if I have the values : 1 , 2 , 3 in each column, applying Tabulate () would calculate the frequency of 1 and 2 without 3" Huh?? > x <- sample(1:3,10,TRUE) > x [1] 1 3 1 1 1 3 2 3 2 1 > tabulate(x) [1] 5 2 3 Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed...
2012 Sep 21
0
Xen 4.2.0 - CPU Frequency Scaling
...others are bundled together and cannot be handled independently which used to be possible with the old xen kernel. If further information would be useful please let me know. Thanks, James # xenpm get-cpufreq-para cpu id : 0 affected_cpus : 0 2 3 4 5 6 7 8 9 10 11 cpuinfo frequency : max [2000000] min [800000] cur [800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : ondemand ondemand specific : sampling_rate : max [10000000] min [10000] cur [20000] up_threshold : 80 scaling_avail_freq...
2008 Nov 30
1
help: unbalanced repeated measures
Hi folks, I am trying to figure out how run a repeated measures ANOVA on the following data set. subject trial frequency dplvl 1 FSI052A A 1 NA 2 FSI052B B 1 NA 3 FSI053A A 1 NA 4 FSI055A A 1 NA 5 FSI055B B 1 NA 6 FSI057A A 1 NA 7 FSI057B B 1 NA 8 FSI058A A 1 NA 9 FSI058B B 1 1...
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
Thank you for your effort Bert.., I knew what is the problem now, the values (1,2,3) were only an example. The values I have are 0 , 1, 2 . Tabulate () function seem to ignore calculating the frequency of 0 values and this is my exact problem as the frequency of 0 values should also be calculated for the maf to be calculated correctly. ________________________________ From: Bert Gunter <bgunter.4567 at gmail.com> Sent: 09 November 2017 23:51:35 To: Allaisone 1; R-help Subject: Re: [R] Cal...
2010 Sep 22
3
Extracting bins and frequencies from frequency table
Dear R users, I would like to great a frequency table from raw data and then access the classes/bins and their respective frequencies separately. Here the code to create the frequency tables: x1 <- c(1,5,1,1,2,2,3,4,5,3,2,3,6,4,3,8) t1 <- table(x1) print(t1[1]) Its easy to plot this, but how do I actually access the frequencies alone a...
2012 Sep 20
3
(no subject)
..."f", "e", "g", "f", "f", "i", "g") b<-c("a", "g", "d", "f", "g", "a", "f", "a", "b", "g") # Of these vectors, you can create frequency lists by writing freq.list.a<-table(a); freq.list.b<-table(b) rm(a); rm(b) # How do you merge these two frequency lists without merging the two vectors first? More specifically, if I delete a and b from your memory, rm(a); rm(b) # how do you generate the following table only from freq.list....
2017 Nov 10
2
Calculating frequencies of multiple values in 200 colomns
...7, at 4:32 AM, Allaisone 1 <allaisone1 at hotmail.com> wrote: > > > > Thank you for your effort Bert.., > > > I knew what is the problem now, the values (1,2,3) were only an example. The values I have are 0 , 1, 2 . Tabulate () function seem to ignore calculating the frequency of 0 values and this is my exact problem as the frequency of 0 values should also be calculated for the maf to be calculated correctly. > > ________________________________ > From: Bert Gunter <bgunter.4567 at gmail.com> > Sent: 09 November 2017 23:51:35 > To: Allaisone 1; R-...
2013 Jun 06
2
generating a bar chart with two axis for co-linear variable
...you can be of help to me in one of the issue that I am facing in generating combo chart(bar chart and plot). I am a novice and have some difficulty in getting this logic correct. I am give a dataset (I am attaching a sample dataset). I am using a barplot() and passing values for percentage frequency and the corresponding variables. I am struck here, what my function does is only calculate the frequency for the listed variables and not the frequency percentage. Is there a method or a script with which I can pass the frequency percent and the related values as category columns for x axis? I...
2015 Mar 27
9
[LLVMdev] fix for loop scale limiting in BFI
I've been trying to get rid of the loop scale limiting problem during BFI. Initially, this was saturating frequencies to the max side of the scale, so a double nested loop would get max frequencies in all the blocks (e.g., llvm/test/CodeGen/X86/lsr-i386.ll). This made the inner loop no hotter than the outer loop, so block placement would not bother aligning them. In convertFloatingToInteger() we are scaling th...
2015 Apr 24
5
[LLVMdev] Loss of precision with very large branch weights
In PR 22718, we are looking at issues with long running applications producing non-representative frequencies. For example, in these two loops: int g = 0; __attribute__((noinline)) void bar() { g++; } extern int printf(const char*, ...); int main() { int i, j, k; for (i = 0; i < 1000000; i++) bar(); printf ("g = %d\n", g); g = 0; for (i = 0; i < 500000; i++) bar...
2008 Apr 27
2
how to modify the histogram's frequencies
Hi: I have been trying to figure out a simple way to plot an histogram whose frequencies are modified by a factor (associated with each value). Actually what I did was plotting each value with its modified frequency(using plot($values, $frequency, type="h")), but it doesnt take into account the probability distribution(which is necessary). It will be very helpful from...
2012 Sep 18
2
Formula in a data-frame
...vegetal 1 0.85 10 Astyanax aquatical_insect 1 0.05 11 Astyanax vegetal 1 0.90 12 Astyanax un_insect 1 0.85 for each specie, I have to calculate a food item importance index, that is: Fi x Vi / Sum (Fi x Vi) Fi = percentual frequency of occurrence of a food item Vi = percentual volume of a food item So, using ddply (plyr) function, I was able to calculate the total frequency of occurrence and total volume of each food item, using: Frequency = ddply (dieta, c('Specie','Fooditem') , summarise, Frequency = sum (...
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
...ned vector indicating how many 1's, 2's, 3's, 4's and 5's are present in the source vector. Compare that to: > tabulate(c(2, 3, 5), nbins = 3) [1] 0 1 1 In the above example, 5 is ignored. Note also that tabulate(), unlike table(), does not return a named vector, just the frequencies. While tabulate() is used within the table() function, reviewing the code for the latter reveals how the default behavior of tabulate() is modified and preceded/wrapped in other code for use there. Regards, Marc Schwartz > On Nov 10, 2017, at 8:43 AM, Boris Steipe <boris.steipe at uto...
2018 May 18
2
Guest's CPU frequency cannot be similar to host system
My resource: kernel: 4.16.8 host system: Ubuntu 16.04 Llbvirt : 4.2 Qemu : 2.12 Cpu : intel@core i7 6700 guest system: windows7 professional My problem: In my host, Cpu frequency is 3800~3900 MHz(4 socket and 2 thread) because i turn on “Intel Turbo Boost”. And silent frequency is 3.40 GHz. Then i boot my guest, But in Guest my cpu frequency is 3408 MHz. why it's not 3800 MHz? And here is my guest xml: <cpu mode='host-passthrough' check='none'&gt...