WIP büro
This commit is contained in:
32
Classes/00_signals/Informationsignal.m
Normal file
32
Classes/00_signals/Informationsignal.m
Normal file
@@ -0,0 +1,32 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user