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

📄 mcacodageneratorexp.java

📁 一个用java写的地震分析软件(无源码)
💻 JAVA
字号:
package org.trinet.util.magnitudeengines;

/** To calculate time series amplitude coda decay data and get results in a CodaTN object. */
public class McaCodaGeneratorExp extends McaCodaGeneratorTN {

    public McaCodaGeneratorExp () {
        super();
    }

    protected double getWindowStartingSampleSecsOffset(int windowCount) {
        if (windowCount < 6)  return  2.0  * windowCount;
        if (windowCount < 14) return  5.0  * (windowCount - 3);
        if (windowCount < 21) return 10.0  * (windowCount - 8);
        return 20.0 * (windowCount - 14);
    }

    protected double getWindowTauSeconds(int windowCount) {
        return secsPastPTimeAtStartingIdx + getWindowStartingSampleSecsOffset(windowCount) + windowSize;
    }

/*
    public static final void main( String args [] ) {
        McaCodaGeneratorExp mc = new McaCodaGeneratorExp();
        mc.secsPerSample = .01;
        for (int idx = 0; idx < 20; idx++) {
            System.out.println("sample idx: " + mc.getWindowStartingSampleIndexOffset(idx)) ;
        }
        mc = null;
        System.exit(0);
    }
*/

}

⌨️ 快捷键说明

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