[Robast-commits] r800 - branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Dec 19 15:02:40 CET 2014


Author: ruckdeschel
Date: 2014-12-19 15:02:39 +0100 (Fri, 19 Dec 2014)
New Revision: 800

Modified:
   branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/interpolationscripts.R
   branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/plotInterpol.R
Log:
[RobExtremes] revised interpolation scripts

Modified: branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/interpolationscripts.R
===================================================================
--- branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/interpolationscripts.R	2014-12-18 14:49:46 UTC (rev 799)
+++ branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/interpolationscripts.R	2014-12-19 14:02:39 UTC (rev 800)
@@ -5,7 +5,8 @@
 ### open R session
 require(RobExtremes)
 ### -> change this according to where you checked out the svn repo:
-.basepath <- "C:/rtest/RobASt/branches/robast-1.0./pkg"
+#.basepath <- "C:/rtest/RobASt/branches/robast-1.0./pkg"
+.basepath <- "/p/fm/PeterRuckdeschel/rtest/RobASt/branches/robast-1.0/pkg"
 .myFolderTo <- file.path(.basepath,"RobExtremesBuffer")
 ## <-
 oldwd <- getwd()
@@ -71,7 +72,7 @@
 if(FALSE){
   ## Block05::      interpol.RMXEnegGEVUFamily.csv
    PF <- GEVFamilyMuUnknown(withPos=FALSE, ..name="GEVU Family")
-  .svInt(.RMXE.th, PFam=PF, xiGrid = xiGridneg,namFzus="neg")
+  .svInt(.RMXE.th, PFam=PF, xiGrid = xiGridneg,namFzus="neg") ###Problem
 }
 if(FALSE){
   ## Block06::      interpol.OMSEpos1GEVUFamily.csv
@@ -86,7 +87,7 @@
 if(FALSE){
   ## Block08::      interpol.OMSEpos3GEVUFamily.csv
    PF <- GEVFamilyMuUnknown(withPos=FALSE, ..name="GEVU Family")
-  .svInt(.OMSE.th, PFam=PF, xiGrid = xiGridpos4,namFzus="pos3")
+  .svInt(.OMSE.th, PFam=PF, xiGrid = xiGridpos4,namFzus="pos3")  ### 16.12.14 erledigt...
 }
 if(FALSE){
   ## Block09::      interpol.OMSEpos4GEVUFamily.csv
@@ -96,7 +97,7 @@
 if(FALSE){
   ## Block10::      interpol.OMSEnegGEVUFamily.csv
    PF <- GEVFamilyMuUnknown(withPos=FALSE, ..name="GEVU Family")
-  .svInt(.OMSE.th, PFam=PF, xiGrid = xiGridneg,namFzus="neg")
+  .svInt(.OMSE.th, PFam=PF, xiGrid = xiGridneg,namFzus="neg") ## Problem
 }
 if(FALSE){
   ## Block11::      interpol.MBREpos1GEVUFamily.csv
@@ -121,13 +122,13 @@
 if(FALSE){
   ## Block15::      interpol.MBREnegGEVUFamily.csv
    PF <- GEVFamilyMuUnknown(withPos=FALSE, ..name="GEVU Family")
-  .svInt(.MBRE.th, PFam=PF, xiGrid = xiGridneg,namFzus="neg")
+  .svInt(.MBRE.th, PFam=PF, xiGrid = xiGridneg,namFzus="neg") ### Problem
 }
 if(FALSE){
   ## Block16::      interpol.RMXEnegGEVFamily.csv
    PF <- GEVFamily(withPos=FALSE)
-  .svInt(.RMXE.th, PFam=PF, xiGrid = xiGridneg, namFzus="neg")
-}
+  .svInt(.RMXE.th, PFam=PF, xiGrid = xiGridneg, namFzus="neg") ### Problem
+}                                                           ####erledigt 16.12.
 if(FALSE){
   ## Block17::      interpol.OMSEnegGEVFamily.csv
    PF <- GEVFamily(withPos=FALSE)

Modified: branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/plotInterpol.R
===================================================================
--- branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/plotInterpol.R	2014-12-18 14:49:46 UTC (rev 799)
+++ branches/robast-1.0/pkg/RobExtremes/inst/AddMaterial/interpolation/plotInterpol.R	2014-12-19 14:02:39 UTC (rev 800)
@@ -7,6 +7,7 @@
    ## Gridnam in (Sn,OMSE,RMXE,MBRE) ## uses partial matching!!
    ## Famnam in "Generalized Pareto Family", ## uses partial matching!!
    ##           "GEV Family",
+   ##           "GEVU Family",
    ##           "Gamma family",
    ##           "Weibull Family"
    ## whichLM  is ignored for Gridnam == Sn
@@ -54,14 +55,15 @@
 #     with columnwise restrictions of \code{Y} (and \code{NULL} entries
 #     are interpreted as no restriction). }
 
-#   file <- file.path(baseDir, "branches/robast-0.9/pkg/RobExtremesBuffer/sysdata.rda")
-   file <- file.path(baseDir, "branches/robast-0.9/pkg/RobAStRDA/R/sysdata.rda")
+   file <- file.path(baseDir, "branches/robast-1.0/pkg/RobExtremesBuffer/sysdata.rda")
+#   file <- file.path(baseDir, "branches/robast-1.0/pkg/RobAStRDA/R/sysdata.rda")
    if(!file.exists(file)) stop("Fehler mit Checkout")
    nE <- new.env()
    load(file, envir=nE)
    Gnams <- c("Sn","OMSE","RMXE","MBRE")
    Fnams <- c("Generalized Pareto Family",
               "GEV Family",
+              "GEVU Family",
               "Gamma family",
               "Weibull Family")
    Gridnam <- Gnams[pmatch(Gridnam, Gnams)]
@@ -86,7 +88,8 @@
    print(round((gr0[gr0[,1]>5,1]),3))
    print(round(summary(diff(gr0[,1])),3))
    print(c("n"=sum(!is.na(gr0[,1])),"NA"=sum(is.na(gr0[,1]))))
-   z <- if(whichLM=="all")  13 else 1
+   z0 <- if(Famnam=="GEVU Family") 25 else 13
+   z <- if(whichLM=="all")  z0 else 1
    if(is.null(plotGridRestriction)){
       plotGridRestriction <- list(rep(TRUE, nrow(gr)))
       pl<- vector("list",z)
@@ -101,7 +104,7 @@
    namesLM <- c("b","a.a[sc]","a.a[sh]","z.i[sc]","z.i[sh]",
                 "A.a[sc,sc]","A.a[sc,sh]","A.a[sh,sc]","A.a[sh,sh]",
                 "A.i[sc,sc]","A.i[sc,sh]","A.i[sh,sc]","A.i[sh,sh]")
-   if(!isSn) if(whichLM!="all") if(whichLM<1 | whichLM>13) stop("Falsche Koordinate")
+   if(!isSn) if(whichLM!="all") if(whichLM<1 | whichLM>z0) stop("Falsche Koordinate")
    if(missing(ylab)||is.null(ylab)) ylab <- "LM"
    if(missing(xlab)||is.null(xlab)) xlab <- expression(xi)
    if(missing(main)||is.null(main)) main <- paste(Gridnam,gsub(" [F,f]amily","",Famnam),sep="-")
@@ -110,8 +113,9 @@
    if(missing(col)||is.null(col)) col <- 1:3
    if(!isSn) if(whichLM=="all"){
       eval(prehook)
-      par(mfrow=c(4,4))
-      for(i in 2:14){
+      if(z0==25) par(mfrow=c(6,6)) else par(mfrow=c(4,4))    
+      if(z0==25) upP=26 else upP=14
+      for(i in 2:upP){
           pla <- plotGridRestriction[[i-1]]
           if(is.null(pla)) pla <- 1:nrow(gr)
           matplot(gr[pla,1], cbind(gr0[pla,i],gr[pla,i]), xlab=xlab, type="n",



More information about the Robast-commits mailing list