Commit 3c6ccba1 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libpsdxx [WP]: adjust accepted range of overlap fraction

parent b94fbde1
......@@ -65,7 +65,7 @@ namespace psd {
void DPSDComputer::set_overlap(const double& f)
{
PSDXX_assert(f>=0., "overlap fraction must be positive");
PSDXX_assert(f<0.5, "overlap fraction is too large");
PSDXX_assert(f<=0.5, "overlap fraction is too large");
this->Moverlap=f;
} // void DPSDComputer::set_overlap(const double& f)
......
......@@ -368,7 +368,7 @@ int main(int iargc, char* argv[])
TFXX_assert(opt.padfactor>0,
"padding factor must be finite and positive");
TFXX_assert(((opt.overlap > 0.) && (opt.overlap <1.)),
TFXX_assert(((opt.overlap >= 0.) && (opt.overlap <=0.5)),
"overlap fraction is out of accepted range");
TFXX_assert(((opt.datetolerance >= 0.) && (opt.datetolerance <=1.)),
"datetolerance is out of accepted range");
......
......@@ -13,7 +13,7 @@
all: cpsd1.bin cpsd2.bin cpsd3.bin
CPSD_NSAMPLESRAW=10000
CPSD_NSAMPLESRAW=100000
#CPSD_NSAMPLESRAW=1000
CPSD_DT=0.1
CPSD_DUR=8640.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment