#! /bin/csh -f -e
 
set bin = /home/phd/hcgl/modula/PZTestMinimizer/SOLgnu

set common = "-trimEnds -maxEvals 200 -random 45 -nTries 50"
set indir = "../../PZFilter/tests"

# Matching chains, linear interpolation

foreach f ( 01-02 02-04 04-08 08-16 16-32 )

nice +19 ${bin}/PZTestMinimizer \
  -inName1 ${indir}/circle-0000-$f-l  0.62  0.85 \
  -inName2 ${indir}/circle-0001-$f-l  0.05  0.27 \
  -matching \
  ${common} \
  > circle-0000-0001-$f-l-mtch.plt

end

# Matching chains, spline smoothing

foreach f ( 01-02 02-04 04-08 08-16 16-32 )
 
nice +19 ${bin}/PZTestMinimizer \
  -inName1 ${indir}/circle-0000-$f-s 0.62 0.85 \
  -inName2 ${indir}/circle-0001-$f-s 0.05 0.27 \
  -matching  \
  ${common} \
  > circle-0000-0001-$f-s-mtch.plt

end  
  
# Non-matching chains, linear interpolation

# Non-matching chains, spline smoothing

# Same chain, linear interpolation

foreach f ( 01-02 02-04 04-08 08-16 16-32 )
 
nice +19 ${bin}/PZTestMinimizer \
  -inName1 ${indir}/circle-0000-$f-l 0.62 0.85 \
  -inName2 ${indir}/circle-0000-$f-l 0.64 0.87 -dontReverse \
  -matching  \
  ${common} \
  > circle-0000-0000-$f-l-self.plt

end  
  
# Same chain, spline smoothing

foreach f ( 01-02 02-04 04-08 08-16 16-32 )
 
nice +19 ${bin}/PZTestMinimizer \
  -inName1 ${indir}/circle-0000-$f-s 0.62 0.85 \
  -inName2 ${indir}/circle-0000-$f-s 0.64 0.87 -dontReverse \
  -matching  \
  ${common} \
  > circle-0000-0000-$f-s-self.plt

end

  


