-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPeriodic.m
More file actions
28 lines (22 loc) · 726 Bytes
/
Copy pathPeriodic.m
File metadata and controls
28 lines (22 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
classdef Periodic
%UNTITLED4 Summary of this class goes here
% Detailed explanation goes here
properties
dim
end
methods
function y = eval(obj,x)
%UNTITLED4 Construct an instance of this class
% Detailed explanation goes here
y = 1+ sum(sin(x).^2) - 0.1* exp(-sum(x.^2));
end
function output = grad(obj,x)
%METHOD1 Summary of this method goes here
% Detailed explanation goes here
output = 2*cos(x) +0.2*exp(-sum(x.^2))*x;
end
function output =function_name(obj)
output = 'Periodic';
end
end
end