Skip to content

Commit

Permalink
Merge pull request #85 from kayleachampion/main
Browse files Browse the repository at this point in the history
Update cpt.class.R
  • Loading branch information
rkillick authored Dec 3, 2024
2 parents 4846aff + aa2b7ab commit d2d364d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/cpt.class.R
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ setClass("cpt",slots=list(data.set="ts", cpttype="character", method="character"
else if(test.stat(object)=="Gamma"){
means=param.est(object)$scale*param.est(object)$shape
}
else if(test.stat(object)=="Eobjectponential"){
else if(test.stat(object)=="Exponential"){
means=1/param.est(object)$rate
}
else if(test.stat(object)=="Poisson"){
Expand Down Expand Up @@ -630,7 +630,7 @@ setClass("cpt",slots=list(data.set="ts", cpttype="character", method="character"
else if(test.stat(object)=="Gamma"){
means=param.est(object)$scale*param.est(object)$shape
}
else if(test.stat(object)=="Eobjectponential"){
else if(test.stat(object)=="Exponential"){
means=1/param.est(object)$rate
}
else if(test.stat(object)=="Poisson"){
Expand Down

0 comments on commit d2d364d

Please sign in to comment.