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

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

?? ratepath.java

?? MPI for java for Distributed Programming
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************                                                                         **             Java Grande Forum Benchmark Suite - MPJ Version 1.0         **                                                                         **                            produced by                                  **                                                                         **                  Java Grande Benchmarking Project                       **                                                                         **                                at                                       **                                                                         **                Edinburgh Parallel Computing Centre                      **                                                                         **                email: epcc-javagrande@epcc.ed.ac.uk                     **                                                                         **      Original version of this code by Hon Yau (hwyau@epcc.ed.ac.uk)     **                                                                         **      This version copyright (c) The University of Edinburgh, 2001.      **                         All rights reserved.                            **                                                                         ***************************************************************************/package jgf_mpj_benchmarks.section3.montecarlo;//package montecarlo;import java.io.*;import java.util.*;/**  * Class for recording the values in the time-dependent path of a security.  *  * <p>To Do list:  * <ol>  *   <li><i>None!</i>  * </ol>  *  * @author H W Yau  * @version $Revision: 1.1 $ $Date: 2005/04/29 17:43:42 $  */public class RatePath extends PathId {  //------------------------------------------------------------------------  // Class variables.  //------------------------------------------------------------------------  /**    * Class variable, for setting whether to print debug messages.    */  public static boolean DEBUG=true;  /**    * The prompt to write before any debug messages.    */  protected static String prompt="RatePath> ";  /**    * Class variable for determining which field in the stock data should be    * used.  This is currently set to point to the 'closing price'.    */  public static int DATUMFIELD=4;  /**    * Class variable to represent the minimal date, whence the stock prices    * appear. Used to trap any potential problems with the data.    */  public static final int MINIMUMDATE = 19000101;  /**    * Class variable for defining what is meant by a small number, small enough    * to cause an arithmetic overflow when dividing.  According to the    * Java Nutshell book, the actual range is +/-4.9406564841246544E-324    */  public static final double EPSILON= 10.0 * Double.MIN_VALUE;  //------------------------------------------------------------------------  // Instance variables.  //------------------------------------------------------------------------  /**    * An instance variable, for storing the rate's path values itself.    */  private double[] pathValue;  /**    * An instance variable, for storing the corresponding date of the datum,    * in 'YYYYMMDD' format.    */  private int[] pathDate;  /**    * The number of accepted values in the rate path.    */  private int nAcceptedPathValue=0;  //------------------------------------------------------------------------  // Constructors.  //------------------------------------------------------------------------  /**    * Constructor, where the user specifies the filename in from which the     * data should be read.    *    * @param String filename    * @exception DemoException thrown if there is a problem reading in    *                          the data file.    */  public RatePath(String filename) throws DemoException {    set_prompt(prompt);    set_DEBUG(DEBUG);    readRatesFile(null,filename);  }  /**    * Constructor, where the user specifies the directory and filename in    * from which the data should be read.    *    * @param String dirName    * @param String filename    * @exception DemoException thrown if there is a problem reading in    *                          the data file.    */  public RatePath(String dirName, String filename) throws DemoException {    set_prompt(prompt);    set_DEBUG(DEBUG);    readRatesFile(dirName,filename);  }  /**    * Constructor, for when the user specifies simply an array of values    * for the path.  User must also include information for specifying    * the other characteristics of the path.    *    * @param pathValue the array containing the values for the path.    * @param name the name to attach to the path.    * @param startDate date from which the path is supposed to start, in    *        'YYYYMMDD' format.    * @param startDate date from which the path is supposed to end, in    *        'YYYYMMDD' format.    * @param dTime the time interval between successive path values, in    *        fractions of a year.    */  public RatePath(double[] pathValue, String name, int startDate, int endDate, double dTime) {    set_name(name);    set_startDate(startDate);    set_endDate(endDate);    set_dTime(dTime);    set_prompt(prompt);    set_DEBUG(DEBUG);    this.pathValue = pathValue;    this.nAcceptedPathValue = pathValue.length;  }  /**    * Constructor, for use by the Monte Carlo generator, when it wishes    * to represent its findings as a RatePath object.    *    * @param mc the Monte Carlo generator object, whose data are to    *           be copied over.    * @exception DemoException thrown if there is an attempt to access    *            an undefined variable.    */  public RatePath(MonteCarloPath mc) throws DemoException {    //    // Fields pertaining to the parent PathId object:    set_name(mc.get_name());    set_startDate(mc.get_startDate());    set_endDate(mc.get_endDate());    set_dTime(mc.get_dTime());    //    // Fields pertaining to RatePath object itself.    pathValue=mc.get_pathValue();    nAcceptedPathValue=mc.get_nTimeSteps();    //    // Note that currently the pathDate is neither declared, defined,    // nor used in the MonteCarloPath object.    pathDate=new int[nAcceptedPathValue];  }  /**    * Constructor, for when there is no actual pathValue with which to    * initialise.    *    * @param pathValueLegth the length of the array containing the values    *        for the path.    * @param name the name to attach to the path.    * @param startDate date from which the path is supposed to start, in    *        'YYYYMMDD' format.    * @param startDate date from which the path is supposed to end, in    *        'YYYYMMDD' format.    * @param dTime the time interval between successive path values, in    *        fractions of a year.    */  public RatePath(int pathValueLength, String name, int startDate, int endDate, double dTime) {    set_name(name);    set_startDate(startDate);    set_endDate(endDate);    set_dTime(dTime);    set_prompt(prompt);    set_DEBUG(DEBUG);    this.pathValue = new double[pathValueLength];    this.nAcceptedPathValue = pathValue.length;  }  //------------------------------------------------------------------------  // Methods.  //------------------------------------------------------------------------  /**    * Routine to update this rate path with the values from another rate    * path, via its pathValue array.    *    * @param operandPath the path value array to use for the update.    * @exception DemoException thrown if there is a mismatch between the    *            lengths of the operand and target arrays.    */  public void inc_pathValue(double[] operandPath) throws DemoException {    if( pathValue.length != operandPath.length )      throw new DemoException("The path to update has a different size to the path to update with!");    for(int i=0; i<pathValue.length; i++ )      pathValue[i] += operandPath[i];  }  /**    * Routine to scale this rate path by a constant.    *    * @param scale the constant with which to multiply to all the path    *        values.    * @exception DemoException thrown if there is a mismatch between the    *            lengths of the operand and target arrays.    */  public void inc_pathValue(double scale) throws DemoException {    if( pathValue==null )      throw new DemoException("Variable pathValue is undefined!");    for(int i=0; i<pathValue.length; i++ )      pathValue[i] *= scale;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区欧美二区| 国产精品欧美一级免费| 色综合夜色一区| 97se亚洲国产综合自在线观| 国产在线麻豆精品观看| 免费av网站大全久久| 免费看欧美美女黄的网站| 亚洲午夜激情网页| 日韩vs国产vs欧美| 青青青爽久久午夜综合久久午夜| 日日夜夜精品免费视频| 六月婷婷色综合| 狠狠色丁香久久婷婷综| 国产福利视频一区二区三区| k8久久久一区二区三区| 91久久精品一区二区三| 欧美丝袜丝交足nylons图片| 欧美一区二区视频网站| 久久精品这里都是精品| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 国产精品五月天| 中文文精品字幕一区二区| 国产精品久久久久久久久免费樱桃| 国产精品少妇自拍| 亚洲裸体在线观看| 日本欧美在线观看| 国产 欧美在线| 在线精品国精品国产尤物884a| 91麻豆精品国产自产在线观看一区 | 欧美激情在线一区二区三区| 亚洲色图19p| 日韩有码一区二区三区| 粉嫩av一区二区三区在线播放| 色老汉av一区二区三区| 日韩一区二区三区视频在线| 国产精品天美传媒| 亚洲va欧美va人人爽| 国产精品一品视频| 欧美日韩成人综合天天影院| 久久亚洲精华国产精华液| 国产精品久久久久久久久久免费看| 亚洲成人动漫在线免费观看| 成人激情视频网站| 欧美一区二区三区电影| 亚洲少妇30p| 久久99最新地址| 欧美日精品一区视频| 国产女人aaa级久久久级| 午夜不卡在线视频| av激情成人网| 久久综合视频网| 午夜电影久久久| 91免费观看视频在线| 国产日韩一级二级三级| 日本亚洲一区二区| 欧美三级中文字| 日韩美女啊v在线免费观看| 国产乱码精品一区二区三区忘忧草| 欧美乱熟臀69xxxxxx| 亚洲综合色网站| a美女胸又www黄视频久久| 久久久久久久久久久久久夜| 奇米影视一区二区三区小说| 精品视频1区2区3区| 有码一区二区三区| 色狠狠色狠狠综合| 国产精品国产自产拍在线| 国产尤物一区二区在线| 日韩三级视频在线看| 丝袜美腿亚洲一区| 51久久夜色精品国产麻豆| 五月综合激情网| 欧美色精品在线视频| 亚洲愉拍自拍另类高清精品| 色综合网色综合| 亚洲激情在线播放| 欧美私人免费视频| 亚洲 欧美综合在线网络| 欧美日韩成人综合在线一区二区| 亚洲成人精品一区二区| 欧美日韩一区在线| 亚洲777理论| 欧美一级二级三级蜜桃| 麻豆久久久久久久| xvideos.蜜桃一区二区| 国产一区二区三区四区五区入口 | 欧美喷潮久久久xxxxx| 视频在线观看91| 欧美一级日韩免费不卡| 久久草av在线| 国产视频911| 色综合视频在线观看| 午夜精品福利在线| 日韩精品中文字幕在线一区| 国产高清不卡二三区| 成人欧美一区二区三区白人| 日本高清免费不卡视频| 日韩国产精品大片| 国产视频一区在线观看| 色综合视频一区二区三区高清| 亚洲大型综合色站| 欧美成人性福生活免费看| 成人性视频免费网站| 亚洲网友自拍偷拍| 欧美电视剧免费全集观看| 国产99精品国产| 亚洲国产欧美在线人成| 日韩欧美在线综合网| 成人精品视频一区二区三区| 亚洲永久精品国产| 日韩美女视频在线| 97精品久久久久中文字幕| 婷婷丁香久久五月婷婷| 国产无遮挡一区二区三区毛片日本| 91极品美女在线| 国产成人精品综合在线观看| 亚洲国产成人tv| 中文字幕免费观看一区| 欧美福利视频导航| gogo大胆日本视频一区| 免费观看在线色综合| 一区二区三区四区激情| 久久色中文字幕| 欧美羞羞免费网站| 粉嫩在线一区二区三区视频| 午夜av电影一区| 玉足女爽爽91| 国产精品久久夜| 2020国产成人综合网| 欧美日韩精品一区视频| 99re热视频精品| 国产一区二区三区不卡在线观看 | 久久麻豆一区二区| 欧美日韩国产成人在线免费| 色综合天天综合| 国产一区在线不卡| 麻豆高清免费国产一区| 亚洲一区二区三区四区的 | 欧洲在线/亚洲| 91在线视频播放地址| 国产成人综合在线观看| 麻豆成人久久精品二区三区红| 亚洲国产精品尤物yw在线观看| 亚洲视频免费在线观看| 国产精品全国免费观看高清 | 成人免费看视频| 国内欧美视频一区二区| 日本sm残虐另类| 免费欧美日韩国产三级电影| 天堂蜜桃91精品| 午夜精品福利一区二区蜜股av| 亚洲影院免费观看| 亚洲一区二区三区四区的| 亚洲一区二区高清| 亚洲夂夂婷婷色拍ww47| 亚洲 欧美综合在线网络| 亚洲成a人片在线不卡一二三区 | 国产a久久麻豆| 国产一区二区看久久| 国产在线乱码一区二区三区| 国产一区二区91| 国产不卡一区视频| 不卡的电影网站| 欧美无人高清视频在线观看| 欧美日韩日日夜夜| 日韩一区和二区| 2024国产精品视频| 一色桃子久久精品亚洲| 亚洲色图另类专区| 丝袜国产日韩另类美女| 捆绑变态av一区二区三区| 国产麻豆成人精品| 成人精品一区二区三区中文字幕| 99久久99久久综合| 欧美日韩高清一区二区三区| 亚洲精品在线免费播放| 国产精品福利影院| 亚洲高清免费观看| 免费观看30秒视频久久| 成人免费视频国产在线观看| 欧洲一区在线观看| 26uuu精品一区二区| 一区视频在线播放| 蜜桃视频第一区免费观看| 国产在线视频精品一区| 色系网站成人免费| 日韩一区二区三区精品视频| 国产精品拍天天在线| 日韩高清在线不卡| www.视频一区| 日韩一区二区三区电影在线观看 | 久久精品国产一区二区三| www.日韩av| 欧美一区二区三区啪啪| 国产精品久久久久久久久久免费看| 天堂影院一区二区| 99精品在线观看视频| 欧美mv日韩mv亚洲| 亚洲一区av在线| 国产宾馆实践打屁股91|