Files
imdd_silas/Classes/Informationsignal.m
2023-05-16 17:43:51 +02:00

33 lines
654 B
Matlab

classdef Informationsignal < Signal
%OPTICALSIGNAL Summary of this class goes here
% Detailed explanation goes here
properties
end
methods
function obj = Informationsignal(signal)
%OPTICALSIGNAL Construct an instance of this class
% Detailed explanation goes here
obj = obj@Signal(signal);
end
function pow = power(obj)
pow = mean(abs(obj.signal),"all") ;
end
function obj = normalize(obj)
obj.signal = obj.signal/sqrt(mean(abs(obj.signal),"all"));
end
end
end