search for: niharika

Displaying 20 results from an estimated 20 matches for "niharika".

2017 Aug 26
1
Find maxima of a function
Please keep the list in cc. Sorry, it didn't work as expected. Maybe someone else have an appropriate solution. Best, Ulrik On Sa., 26. Aug. 2017, 12:57 niharika singhal <niharikasinghal1990 at gmail.com> wrote: > Hi > > Thanks for you mail, > I really appreciate your time on my problem > > I have posted this problem on > > > https://stats.stackexchange.com/questions/299590/to-find-maxima-for-gaussian-mi...
2017 Aug 28
1
"Improvement with the R code"
...lt;- function(data, states) prop.table(table(head(data, -1), tail(data, -1)), 1)[states,] checkdf=data.frame(clusterNum=c(3,2,3,1,1,3,1,3,2,1,1,3,2,1,3,2)) states=c(2,3) transition_matrix= generate_transition_matrix(checkdf$clusterNum, states) transition_matrix 2017-08-28 18:09 GMT+02:00 niharika singhal <niharikasinghal1990 at gmail.com>: > yes or S_i= number of state > > M[S_i][S_j]= transition from state S_i to state S_j / number of > transition from state S_i where S_i is in the set S > For example 1 row of 3 states will be > x= s1->s1/no o...
2017 Aug 22
2
Rounding of problem with sum command in R
....2074027) when i do sum(v) or 0.08844446+0.1744455+0.1379778+0.1209769+0.1573065+0.1134463+0.2074027 i am getting output as 1 But if i add them manually i get 1.00000026 I do not want to round of my value since it effect my code further Can anyone suggest how can i avoid this. Thanks & Regards Niharika Singhal [[alternative HTML version deleted]]
2017 Aug 28
0
"Improvement with the R code"
...number of transition from state i but from what you just answered it looks like you want to compute a matrix M for a set of states S such that: M[S_i][S_j]= transition from state S_i to state S_j / number of transition from state S_i where S_i is in the set S ? 2017-08-28 17:50 GMT+02:00 niharika singhal <niharikasinghal1990 at gmail.com>: > Sorry I have typed wrong value for output > (2/6, 1/6, 3/6) > > On Mon, Aug 28, 2017 at 5:49 PM, niharika singhal < > niharikasinghal1990 at gmail.com> wrote: > >> Hi Elie, >> >> Thanks for th...
2017 Aug 26
2
Fwd: Find maxima of a function
...p;node=4744993&i=0>> wrote: > > > > Please keep the list in cc. > > > > Sorry, it didn't work as expected. Maybe someone else have an > appropriate > > solution. > > > > Best, > > Ulrik > > > > On Sa., 26. Aug. 2017, 12:57 niharika singhal <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4744993&i=1>> > > wrote: > > > >> Hi > >> > >> Thanks for you mail, > >> I really appreciate your time on my problem > >> > >&gt...
2017 Aug 22
1
Rounding of problem with sum command in R
On 2017-08-22 9:26 AM, niharika singhal wrote: > Hello I have a vector > v=c(0.08844446,0.1744455,0.1379778,0.1209769,0.1573065,0.1134463,0.2074027) > when i do > sum(v) > or > 0.08844446+0.1744455+0.1379778+0.1209769+0.1573065+0.1134463+0.2074027 > i am getting output as 1 No:? That's only the display:...
2017 Sep 20
1
How to use depmix for HMM with intial parameters
...my emission matrix, it would always be list of matrix (mean , sigma and weighted coefficient mixture) I thought to change the response but I am unable to figure out the right response Can someone guide me how can I solve this problem, by giving the parameters defined above? Thanks & Regards Niharika Singhal [[alternative HTML version deleted]]
2017 Oct 11
0
"Time Series Plotting"
Hi keep your emails to R help, I do not offer private consultance and others could have different opinion how to solve your problem. Did you even try my suggestion? If not, why not? If yes in what respect it does not comply with your expectations. Cheers Petr From: niharika singhal [mailto:niharikasinghal1990 at gmail.com] Sent: Tuesday, October 10, 2017 2:34 PM To: PIKAL Petr <petr.pikal at precheza.cz> Subject: Re: [R] "Time Series Plotting" Hello, My Energy column looks like in the image in the attachment, and my sequence column correspond to stat...
2017 Aug 22
1
Rounding of problem with sum command in R
...an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Aug 22, 2017 at 7:30 AM, Spencer Graves <spencer.graves at effectivedefense.org> wrote: > > > On 2017-08-22 9:26 AM, niharika singhal wrote: >> >> Hello I have a vector >> >> v=c(0.08844446,0.1744455,0.1379778,0.1209769,0.1573065,0.1134463,0.2074027) >> when i do >> sum(v) >> or >> 0.08844446+0.1744455+0.1379778+0.1209769+0.1573065+0.1134463+0.2074027 >> i am getting o...
2017 Aug 28
1
"Improvement with the R code"
...transitions[k,] <- transitions[k,] / sum(transitions[k,]) transitions } checkdf=data.frame(clusterNum=c(3,2,3,1,1,3,4,3,2,1,1,3,2,1,3,2)) no_of_state=4 transition_matrix= generate_transition_matrix(checkdf$clusterNum, no_of_state) transition_matrix 2017-08-28 16:37 GMT+02:00 niharika singhal <niharikasinghal1990 at gmail.com>: > Hello, > > I am trying to implement a formula > > aij= transition from state S_i to S_j/no of transition at state S_i > > > > Code I have written is working with three state {1,2,3 }, but if the number > of stat...
2017 Aug 27
1
Fwd: Find maxima of a function
Dear Niharika, As I said before, the problem is basically an optimization issue. You should isolate the problematic part from the rest of your study. Sometimes, more information does not help to solution. All the answers from us (Ulrik, David, me) are more or less are correct to find a maximum point. Newton?s m...
2017 Aug 27
1
Fwd: Find maxima of a function
---------- Forwarded message ---------- From: niharika singhal <niharikasinghal1990 at gmail.com> Date: Sun, Aug 27, 2017 at 11:57 AM Subject: Re: Find maxima of a function To: "David Winsemius [via R]" <ml+s789695n4745009h56 at n4.nabble.com>, "Ismail SEZEN [via R]" <ml+s789695n4744993h60 at n4.nabble.com>, Ulrik...
2017 Aug 26
1
Find maxima of a function
...//i.stack.imgur.com/kESYX.png> Is there any way to find the maxima. I have tried Newton's method but it gave me the wrong output. Like in general some common solution, which would work on all the cases, is needed.Can someone suggest me how can I achieve this Thanks in advance Niharika Singhal [[alternative HTML version deleted]]
2017 Aug 27
1
Fwd: Find maxima of a function
...ust) exist. Or perhaps there is more to it in which case I apologize. But I thought that I would make the OP aware of the package (of which, in full disclosure, I am co-author). Best wishes, Ranjan On Sun, 27 Aug 2017 16:01:59 +0300 Ismail SEZEN <sezenismail at gmail.com> wrote: > Dear Niharika, > > As I said before, the problem is basically an optimization issue. You should isolate the problematic part from the rest of your study. Sometimes, more information does not help to solution. All the answers from us (Ulrik, David, me) are more or less are correct to find a maximum point....
2017 Aug 28
1
"Improvement with the R code"
...lse { count3=count3+1 } } } no_of_points=(count1+count2+count3) s1=count1/no_of_points s2=count2/no_of_points s3=count3/no_of_points transition_matrix[k,]=c(s1, s2, s3) } I know the code is not written nicely and I want to improve it. Thanks in advance Niharika [[alternative HTML version deleted]]
2017 Oct 10
1
"Time Series Plotting"
...uence 13536 3 14335 3 14638 3 25363 3 18511 2 18371 2 14555 3 I am able to plot time series by:- Data.energy<- ts(Data$ Energy, frequency=1) plot(Data.energy) How should I add the color effect based on the sequence column value? Thanks & Regards Niharika Singhal [[alternative HTML version deleted]]
2017 Aug 24
1
Problem in optimization of Gaussian Mixture model
...to check mc0=c( 0.6329082,0.6329082,0.2428986) rv <-UnivarMixingDistribution(Norm(506.8644,61.02859),Norm(672.8448,9.149168),Norm( 829.902,74.84682), mixCoeff=mc0/sum(mc0)) plot(rv, to.draw.arg="d") Can someone please help how I can solve this problem? Thanks & Regards Niharika Singhal [[alternative HTML version deleted]]
2017 Aug 26
1
Find maxima of a function
> On 26 Aug 2017, at 16:39, niharika singhal <niharikasinghal1990 at gmail.com> wrote: > > Hi, > > Thanks for your mail, and time > > It is not working for some arguments, when mean value is like >6. > > > case > > mc0 <- c(0.08844446,0.1744455,0.1379778,0.1209769,0.1573065,0. > 11...
2017 Aug 11
0
Problem in retrieving list parameters
...2, mu=Mean_of_mc), fn=xnorm, method = "BFGS", control=list(fnscale=-1)) xnorm= function(par) { print(par) x=par['parl'] l=par['lVal'] val=par['mu'] #some logic } get NA for val, how can i get all the values of Mean_of_mc Thanks Niharika [[alternative HTML version deleted]]
2017 Aug 10
1
"Help On optim"
Hello, I have some parameters from Mclust function. The parameters are in the form *parametersDf * * mu_1 mu_2 var_mc1 var_mc2 c1 c2 * *2 1.357283 2.962736 0.466154 0.1320129 0.5258975 0.4741025 * *21 8.357283 9.962736 0.466154 0.1320129 0.5258975 0.4741025 * Each row in the above data frame