code: final boolean satisfiedBy(
              Segment<PrimitiveParameter> segment, Algorithm algorithm)
              throws AlgorithmInitializationException,
              AlgorithmProcessingException {
          Object result = null;
          if (algorithm != null) {
              if (this.algorithmArguments == null) {
                  this.algorithmArguments = new AlgorithmArguments(algorithm,
                          this);
                  algorithm.initialize(this.algorithmArguments);
              }
              result = algorithm.compute(segment, this.algorithmArguments);
          } else {
              result = BooleanValue.TRUE;
          }
          return result != null;
      }
docs: Test whether or not the given time series satisfies the constraints of
  this detector and an optional algorithm. If no algorithm is specified,
  then this test just uses the detector's constraints.
  
  @param segment a time series <code>Segment</code>, cannot be
  <code>null</code>.
  @param algorithm an <code>Algorithm</code>, or <code>null</code> to
  specify no algorithm.
  @return <code>true</code> if the time series segment satisfies the
  constraints of this detector, <code>false</code> otherwise
  @throws AlgorithmInitializationException
  @throws AlgorithmProcessingException