⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stepinterpolator.java

📁 Apache的common math数学软件包
💻 JAVA
字号:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.commons.math.ode;import java.io.Externalizable;/** This interface represents an interpolator over the last step * during an ODE integration. * * <p>The various ODE integrators provide objects implementing this * interface to the step handlers. These objects are often custom * objects tightly bound to the integrator internal algorithms. The * handlers can use these objects to retrieve the state vector at * intermediate times between the previous and the current grid points * (this feature is often called dense output).</p> * * @see FirstOrderIntegrator * @see SecondOrderIntegrator * @see StepHandler * @version $Revision: 620312 $ $Date: 2008-02-10 12:28:59 -0700 (Sun, 10 Feb 2008) $ * @since 1.2 */public interface StepInterpolator  extends Externalizable {  /**   * Get the previous grid point time.   * @return previous grid point time   */  public double getPreviousTime();      /**   * Get the current grid point time.   * @return current grid point time   */  public double getCurrentTime();      /**   * Get the time of the interpolated point.   * If {@link #setInterpolatedTime} has not been called, it returns   * the current grid point time.   * @return interpolation point time   */  public double getInterpolatedTime();      /**   * Set the time of the interpolated point.   * <p>Setting the time outside of the current step is now allowed, but   * should be used with care since the accuracy of the interpolator will   * probably be very poor far from this step. This allowance has been   * added to simplify implementation of search algorithms near the   * step endpoints.</p>   * <p>Setting the time changes the instance internal state. If a   * specific state must be preserved, a copy of the instance must be   * created using {@link #copy()}.</p>   * @param time time of the interpolated point   * @throws DerivativeException if this call induces an automatic   * step finalization that throws one   */  public void setInterpolatedTime(double time)    throws DerivativeException;  /**   * Get the state vector of the interpolated point.   * @return state vector at time {@link #getInterpolatedTime}   */  public double[] getInterpolatedState();  /** Check if the natural integration direction is forward.   * <p>This method provides the integration direction as specified by   * the integrator itself, it avoid some nasty problems in   * degenerated cases like null steps due to cancellation at step   * initialization, step control or switching function   * triggering.</p>   * @return true if the integration variable (time) increases during   * integration   */  public boolean isForward();  /** Copy the instance.   * <p>The copied instance is guaranteed to be independent from the   * original one. Both can be used with different settings for   * interpolated time without any side effect.</p>   * @return a deep copy of the instance, which can be used independently.   * @throws DerivativeException if this call induces an automatic   * step finalization that throws one   * @see #setInterpolatedTime(double)   */   public StepInterpolator copy() throws DerivativeException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -