亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ratepath.java

?? MPI for java for Distributed Programming
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
  }  //------------------------------------------------------------------------  // Accessor methods for class RatePath.  // Generated by 'makeJavaAccessor.pl' script.  HWY.  20th January 1999.  //------------------------------------------------------------------------  /**    * Accessor method for private instance variable <code>pathValue</code>.    *    * @return Value of instance variable <code>pathValue</code>.    * @exception DemoException thrown if instance variable <code>pathValue</code> is undefined.    */  public double[] get_pathValue() throws DemoException {    if( this.pathValue == null )      throw new DemoException("Variable pathValue is undefined!");    return(this.pathValue);  }  /**    * Set method for private instance variable <code>pathValue</code>.    *    * @param pathValue the value to set for the instance variable <code>pathValue</code>.    */  public void set_pathValue(double[] pathValue) {    this.pathValue = pathValue;  }  /**    * Accessor method for private instance variable <code>pathDate</code>.    *    * @return Value of instance variable <code>pathDate</code>.    * @exception DemoException thrown if instance variable <code>pathDate</code> is undefined.    */  public int[] get_pathDate() throws DemoException {    if( this.pathDate == null )      throw new DemoException("Variable pathDate is undefined!");    return(this.pathDate);  }  /**    * Set method for private instance variable <code>pathDate</code>.    *    * @param pathDate the value to set for the instance variable <code>pathDate</code>.    */  public void set_pathDate(int[] pathDate) {    this.pathDate = pathDate;  }  //------------------------------------------------------------------------  /**     * Method to return the terminal value for a given rate path, as used     * in derivative calculations.     *      * @return The last value in the rate path.     */  public double getEndPathValue() {    return( getPathValue(pathValue.length-1) );  }  /**    * Method to return the value for a given rate path, at a given index.    * <i>One may want to index this in a more user friendly manner!</i>    *     * @param index the index on which to return the path value.    * @return The value of the path at the designated index.    */  public double getPathValue(int index) {    return(pathValue[index]);  }  /**    * Method for calculating the returns on a given rate path, via the    * definition for the instantaneous compounded return.    *       u_i = \ln{\frac{S_i}{S_{i-1}}}    *     * @return the return, as defined.    * @exception DemoException thrown if there is a problem with the    *                          calculation.    */  public ReturnPath getReturnCompounded() throws DemoException {    if( pathValue == null || nAcceptedPathValue == 0 ) {      throw new DemoException("The Rate Path has not been defined!");    }    double[] returnPathValue = new double[nAcceptedPathValue];    returnPathValue[0] = 0.0;    try{      for(int i=1; i< nAcceptedPathValue; i++ ) {	returnPathValue[i] = Math.log(pathValue[i] / pathValue[i-1]);      }    } catch( ArithmeticException aex ) {      throw new DemoException("Error in getReturnLogarithm:"+aex.toString());    }    ReturnPath rPath = new ReturnPath(returnPathValue, nAcceptedPathValue,     ReturnPath.COMPOUNDED);    //    // Copy the PathId information to the ReturnPath object.    rPath.copyInstanceVariables(this);    rPath.estimatePath();    return(rPath);  }  /**    * Method for calculating the returns on a given rate path, via the    * definition for the instantaneous non-compounded return.    *       u_i = \frac{S_i - S_{i-1}}{S_i}    *     * @return the return, as defined.    * @exception DemoException thrown if there is a problem with the    *                          calculation.    */  public ReturnPath getReturnNonCompounded() throws DemoException {    if( pathValue == null || nAcceptedPathValue == 0 ) {      throw new DemoException("The Rate Path has not been defined!");    }    double[] returnPathValue = new double[nAcceptedPathValue];    returnPathValue[0] = 0.0;    try{      for(int i=1; i< nAcceptedPathValue; i++ ) {	returnPathValue[i] = (pathValue[i] - pathValue[i-1])/pathValue[i];      }    } catch( ArithmeticException aex ) {      throw new DemoException("Error in getReturnPercentage:"+aex.toString());    }    ReturnPath rPath = new ReturnPath(returnPathValue, nAcceptedPathValue,     ReturnPath.NONCOMPOUNDED);    //    // Copy the PathId information to the ReturnPath object.    rPath.copyInstanceVariables(this);    rPath.estimatePath();    return(rPath);  }  //------------------------------------------------------------------------  // Private methods.  //------------------------------------------------------------------------  /**    * Method for reading in data file, in a given format.    * Namely:      <pre>      881003,0.0000,14.1944,13.9444,14.0832,2200050,0      881004,0.0000,14.1668,14.0556,14.1668,1490850,0      ...      990108,35.8125,36.7500,35.5625,35.8125,4381200,0      990111,35.8125,35.8750,34.8750,35.1250,3920800,0      990112,34.8750,34.8750,34.0000,34.0625,3577500,0      </pre>    * <p>Where the fields represent, one believes, the following:    * <ol>    *   <li>The date in 'YYMMDD' format</li>    *   <li>Open</li>    *   <li>High</li>    *   <li>Low</li>    *   <li>Last</li>    *   <li>Volume</li>    *   <li>Open Interest</li>    * </ol>    * One will probably make use of the closing price, but this can be    * redefined via the class variable <code>DATUMFIELD</code>.  Note that    * since the read in data are then used to compute the return, this would    * be a good place to trap for zero values in the data, which will cause    * all sorts of problems.    *    * @param dirName the directory in which to search for the data file.    * @param filename the data filename itself.    * @exception DemoException thrown if there was a problem with the data    *                          file.    */  private void readRatesFile(String dirName, String filename) throws DemoException {    java.io.File ratesFile = new File(dirName, filename);    java.io.BufferedReader in;    if( ! ratesFile.canRead() ) {      throw new DemoException("Cannot read the file "+ratesFile.toString());    }    try{      in = new BufferedReader(new FileReader(ratesFile));    } catch( FileNotFoundException fnfex ) {      throw new DemoException(fnfex.toString());    }    //    // Proceed to read all the lines of data into a Vector object.    int iLine=0, initNlines=100, nLines=0;        String aLine;    java.util.Vector allLines = new Vector(initNlines);    try{      while( (aLine = in.readLine()) != null ) {	iLine++;	//	// Note, I'm not entirely sure whether the object passed in is copied	// by value, or just its reference.	allLines.addElement(aLine);      }    } catch( IOException ioex ) {      throw new DemoException("Problem reading data from the file "+ioex.toString());    }    nLines = iLine;    //    // Now create an array to store the rates data.    this.pathValue = new double[nLines];    this.pathDate  = new int[nLines];    nAcceptedPathValue=0;    iLine=0;    for( java.util.Enumeration enum_ = allLines.elements(); enum_.hasMoreElements(); ) {      aLine = (String) enum_.nextElement();      String[] field = Utilities.splitString(",",aLine);      int aDate = Integer.parseInt("19"+field[0]);      //      // static double Double.parseDouble() method is a feature of JDK1.2!      double aPathValue = Double.valueOf(field[DATUMFIELD]).doubleValue();      if( (aDate <= MINIMUMDATE) || (Math.abs(aPathValue) < EPSILON) ) {	dbgPrintln("Skipped erroneous data in "+filename+" indexed by date="+field[0]+".");      } else {	pathDate[iLine] = aDate;	pathValue[iLine] = aPathValue;	iLine++;      }    }    //    // Record the actual number of accepted data points.    nAcceptedPathValue = iLine;    //    // Now to fill in the structures from the 'PathId' class.    set_name(ratesFile.getName());    set_startDate(pathDate[0]);    set_endDate(pathDate[nAcceptedPathValue-1]);    set_dTime((double)(1.0/365.0));  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩理论在线观看| 国产精品一区2区| 欧美日韩亚洲高清一区二区| 一区二区三区四区高清精品免费观看 | 激情文学综合网| 精品国产亚洲一区二区三区在线观看| 国产中文一区二区三区| 国产日产欧美一区二区三区| 成人免费三级在线| 亚洲日本欧美天堂| 欧美日韩精品久久久| 奇米影视一区二区三区| 亚洲精品一区二区三区福利| 国产成人99久久亚洲综合精品| 椎名由奈av一区二区三区| 色av综合在线| 蜜乳av一区二区三区| 国产欧美精品在线观看| 95精品视频在线| 日本中文字幕一区| 日本一区免费视频| 欧美色网一区二区| 久久99精品国产.久久久久久| 国产免费观看久久| 欧美视频在线播放| 国产二区国产一区在线观看| 一区二区三区91| 欧美不卡一区二区| 91女神在线视频| 久久精品国产精品青草| 成人欧美一区二区三区视频网页| 欧美久久久久久久久中文字幕| 国产一区二区三区四| 伊人一区二区三区| 欧美精品一区二区精品网| 97国产精品videossex| 韩日av一区二区| 欧美日韩一本到| 亚洲综合视频在线| 欧美视频你懂的| 日韩精品中文字幕在线一区| 亚洲色图在线播放| 丁香婷婷深情五月亚洲| 国产日韩亚洲欧美综合| 国产成人综合在线播放| 精品精品国产高清一毛片一天堂| 亚洲高清视频中文字幕| 日韩一区二区三区电影| 亚洲妇熟xx妇色黄| 日本一区二区综合亚洲| 日韩精品专区在线| 在线播放91灌醉迷j高跟美女| 成人性生交大片免费| 久久国产精品第一页| 天堂影院一区二区| 亚洲图片激情小说| 亚洲国产电影在线观看| 欧美精品一区二区三区四区| 7777女厕盗摄久久久| 91国产成人在线| av在线这里只有精品| 国产不卡在线视频| 国产精品综合网| 蜜芽一区二区三区| 日本三级亚洲精品| 日韩成人精品视频| 午夜精品久久久久久久久| 亚洲一区视频在线| 亚洲高清中文字幕| 亚洲已满18点击进入久久| 亚洲免费av网站| 亚洲精品国产一区二区精华液| 国产精品乱码一区二三区小蝌蚪| 国产视频一区不卡| 国产亚洲欧美日韩在线一区| 久久久九九九九| 国产日产精品一区| 欧美激情综合网| 国产精品色一区二区三区| 国产欧美综合在线观看第十页| 久久久久国产精品免费免费搜索| 久久久久久久网| 久久免费的精品国产v∧| 国产亚洲视频系列| 中文字幕精品一区二区精品绿巨人| 国产欧美日韩三级| 国产精品久久夜| 国产精品污网站| 亚洲黄色录像片| 亚洲一二三区在线观看| 亚洲电影在线免费观看| 蜜桃在线一区二区三区| 国产在线乱码一区二区三区| 国产乱码字幕精品高清av| 成人理论电影网| 欧美性猛片xxxx免费看久爱| 日韩一级黄色片| 精品久久久久av影院 | 国产精品美女久久久久久久| 91精品国产综合久久香蕉的特点| 欧美成人午夜电影| 国产精品欧美一级免费| 国产人伦精品一区二区| 久久精品欧美日韩精品 | 欧美伊人久久大香线蕉综合69| 成人精品电影在线观看| 大尺度一区二区| 欧美亚洲一区二区三区四区| 成人免费视频视频| 色综合久久中文字幕综合网 | 97精品国产露脸对白| 欧美日韩中文另类| 精品处破学生在线二十三| 国产精品青草综合久久久久99| 亚洲美女视频在线观看| 日本不卡在线视频| 99精品国产热久久91蜜凸| 91精品久久久久久久99蜜桃 | 欧洲亚洲国产日韩| 日韩欧美在线综合网| 最新国产の精品合集bt伙计| 日韩中文欧美在线| 福利一区福利二区| 欧美久久高跟鞋激| 亚洲国产精品黑人久久久| 日欧美一区二区| eeuss鲁片一区二区三区| 欧美一区二区视频网站| 亚洲欧美综合网| 国产综合成人久久大片91| 欧美在线短视频| 国产日本一区二区| 美美哒免费高清在线观看视频一区二区 | 国产精品久久久久aaaa樱花 | 午夜成人免费视频| 久久久亚洲午夜电影| 一区二区不卡在线视频 午夜欧美不卡在 | 久久综合狠狠综合久久综合88 | eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 日韩电影免费一区| 日韩三级免费观看| 国产精品天美传媒| 粉嫩一区二区三区性色av| 91偷拍与自偷拍精品| 国产欧美日韩精品在线| 黄色成人免费在线| 26uuu精品一区二区| 黑人巨大精品欧美一区| 欧美一区二区网站| 日韩有码一区二区三区| 欧美精品一区二区三区四区| 国产一区二区三区久久悠悠色av| 2023国产精品视频| 日韩二区在线观看| 在线成人免费观看| 蜜臀av国产精品久久久久| 51久久夜色精品国产麻豆| 天天做天天摸天天爽国产一区 | 国产综合久久久久影院| 九色porny丨国产精品| 午夜精品久久久久影视| 日韩在线一二三区| 欧美日韩高清影院| 亚洲综合色婷婷| 欧美视频一区二区三区四区| 一区二区三区在线免费视频| eeuss国产一区二区三区| 最新国产精品久久精品| 99久久精品免费看国产免费软件| 亚洲国产精品99久久久久久久久| 国内成人自拍视频| 国产欧美精品日韩区二区麻豆天美| 激情都市一区二区| 亚洲国产精品v| 一本到一区二区三区| 亚洲一区国产视频| 欧美美女视频在线观看| 麻豆一区二区三| 欧美精品一区二区久久婷婷 | 国产激情视频一区二区三区欧美 | 国产精品污www在线观看| 99精品视频在线观看免费| 亚洲欧美自拍偷拍| 欧美影院一区二区三区| 日韩黄色小视频| 欧美mv日韩mv国产网站app| 国产一区二区在线观看免费| 久久久亚洲午夜电影| 成人免费视频视频在线观看免费 | 欧美日韩三级一区二区| 婷婷国产在线综合| 久久免费午夜影院| 99re6这里只有精品视频在线观看| 亚洲欧美成人一区二区三区| 欧美日韩精品一区二区| 精品一二三四在线| 亚洲少妇中出一区| 欧美一级高清片| 粉嫩久久99精品久久久久久夜| 亚洲精选一二三|