@Test public void testOutliers() { X13Specification xspec = X13Specification.RSA4.clone(); TsPeriodSelector sel=new TsPeriodSelector(); sel.excluding(0, 24); xspec.getRegArimaSpecification().getBasic().setSpan(sel); xspec.getRegArimaSpecification().getRegression().add(new OutlierDefinition(new Day(1993, Month.May, 0), "AO")); xspec.getRegArimaSpecification().getOutliers().setDefaultCriticalValue(3.5); X13Processor processor = new X13Processor(); CompositeResults rslt = processor.generateProcessing(xspec, null).process(Data.P); PreprocessingModel model = rslt.get("preprocessing", PreprocessingModel.class); assertTrue(model.description.getOutliers().size()>1); }
@Override public IProcessing<TsData, CompositeResults> generateProcessing(X13Specification specification, ProcessingContext context) { return X13ProcessingFactory.instance.generateProcessing(specification, context); }
X13Processor implements ISaProcessingFactory<X13Specification> { @Override public IProcessing<TsData, CompositeResults> generateProcessing(X13Specification specification, ProcessingContext context) { return X13ProcessingFactory.instance.generateProcessing(specification, context); } }
X13Processor implements ISaProcessingFactory<X13Specification> { @Override public IProcessing<TsData, CompositeResults> generateProcessing(X13Specification specification, ProcessingContext context) { return X13ProcessingFactory.instance.generateProcessing(specification, context); } X13Processor(); }
X13Processor implements ISaProcessingFactory<X13Specification> { @Override public IProcessing<TsData, CompositeResults> generateProcessing(X13Specification specification, ProcessingContext context) { return X13ProcessingFactory.instance.generateProcessing(specification, context); } X13Processor(); @Override ISaSpecification createSpecification(InformationSet info); @Override ISaSpecification createSpecification(SaItem doc, TsDomain frozen, EstimationPolicyType policy, boolean nospan); @Override boolean updatePointSpecification(SaItem item); @Override SaDocument<?> createDocument(); @Override List<ISaSpecification> defaultSpecifications(); @Override void dispose(); @Override AlgorithmDescriptor getInformation(); @Override boolean canHandle(IProcSpecification spec); @Override IProcessing<TsData, CompositeResults> generateProcessing(X13Specification specification, ProcessingContext context); @Override Map<String, Class> getSpecificationDictionary(Class<X13Specification> specClass); @Override Map<String, Class> getOutputDictionary(boolean compact); }
X13Processor implements ISaProcessingFactory<X13Specification> { @Override public IProcessing<TsData, CompositeResults> generateProcessing(X13Specification specification, ProcessingContext context) { return X13ProcessingFactory.instance.generateProcessing(specification, context); } X13Processor(); @Override ISaSpecification createSpecification(InformationSet info); @Override ISaSpecification createSpecification(SaItem doc, TsDomain frozen, EstimationPolicyType policy, boolean nospan); @Override boolean updatePointSpecification(SaItem item); @Override SaDocument<?> createDocument(); @Override List<ISaSpecification> defaultSpecifications(); @Override void dispose(); @Override AlgorithmDescriptor getInformation(); @Override boolean canHandle(IProcSpecification spec); @Override IProcessing<TsData, CompositeResults> generateProcessing(X13Specification specification, ProcessingContext context); @Override Map<String, Class> getSpecificationDictionary(Class<X13Specification> specClass); @Override Map<String, Class> getOutputDictionary(boolean compact); static final AlgorithmDescriptor DESCRIPTOR; }