classdef difference < featlearn.operator.internal.binaryNumeric
    properties

    end
    methods
        function [this,T] = difference(T)
            % construct base class
            this = this@featlearn.operator.internal.binaryNumeric(T);
            this = setOutputVarNames(this,T,'%s-%s');
            % apply transfomation to data
            T = apply(this,T);
        end
        
        function T = apply(this,T)
            T = applyVec(this,T,@minus);
        end
        
        function str = details(this)
           str = this.InputVarNames{1} + " - " + this.InputVarNames{2};
        end  
    end
        
end