Boxcar.java
/*
* $Id: Boxcar.java,v 1.9 2008/03/08 00:17:40 koga Exp $
*
* Copyright (C) 2004 Koga Laboratory. All rights reserved.
*/
package org.mklab.tool.signal;
import org.mklab.nfc.matrix.DoubleMatrix;
/**
* 矩形窓を求めるクラスです。
*
* <p> Rectangular window
*
* @author koga
* @version $Revision: 1.9 $
* @see org.mklab.tool.signal.Bartlett
* @see org.mklab.tool.signal.Blackman
*/
public class Boxcar {
/**
* <code>length</code>点の矩形窓を返します。
*
* @param length 窓の長さ
* @return 矩形窓 (rectangular window)
*/
public static DoubleMatrix boxcar(int length) {
DoubleMatrix window = DoubleMatrix.ones(1, length);
return window;
}
}