
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
R
I need to create a function:
(@@ Make this a function also
# For column ix, create an array of functions based on the 2der, indices, values info
# Create a Gaussian function Aexp(−a(j − μ)^2) Where μ= minimum index,
# inputs: column index, lists of min indices, min 2derivs, and min values
# Output: array of functions)
![#@@ Make this a function also
# For column ix, create an array of functions based on the 2der, indices, values info
where μ= minimum index,
# Create a Gaussian function Aexp(-a(j-μ)^2)
# inputs: column index, lists of min indices, min 2derivs, and min values
# Output: array of functions
# Description:
ix=1
mu <- minima_indices [[ix]]
der 2 < minima_2der [[ix]]
A <- minima_values [[ix]]
a <- der 2/(2*A)
length (mu)
1 mu
jvec-1:1024
gf <- array(c(0), dim = c(1mu,1024))
for (i in 1:1mu) {
gf[i,] = exp(a[i]* (jvec-mu[i])^2)](https://content.bartleby.com/qna-images/question/892e817a-9b32-4eeb-b8fc-5dd7ffde6479/9542c891-4437-4ed5-b290-ba80524f6d57/p644n5_thumbnail.png)
Transcribed Image Text:#@@ Make this a function also
# For column ix, create an array of functions based on the 2der, indices, values info
where μ= minimum index,
# Create a Gaussian function Aexp(-a(j-μ)^2)
# inputs: column index, lists of min indices, min 2derivs, and min values
# Output: array of functions
# Description:
ix=1
mu <- minima_indices [[ix]]
der 2 < minima_2der [[ix]]
A <- minima_values [[ix]]
a <- der 2/(2*A)
length (mu)
1 mu
jvec-1:1024
gf <- array(c(0), dim = c(1mu,1024))
for (i in 1:1mu) {
gf[i,] = exp(a[i]* (jvec-mu[i])^2)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Create a function func_1.m to analyze the following function: The function needs to ask for x and plot the y(x). Select the range of x y=2*x.^2.*cos(x)./exp(0.1*x);arrow_forwardWrite a C code to order 10 different numbers in descending order. Take input for 10 differentnumbers. Must use pointer type variable. Also, write a user defined function for finding the orderto complete the code.arrow_forwardWrite a function named rockPaperScissors. It should have one input:- An array with 2 elements, each representing a player in the game of Rock Paper Scissors.It should return one output- A scalar with the result of the game.For the purposes of this program, assume the following numerical code:- 1 is rock- 2 is paper- 3 is scissorsIn the game of Rock, Paper, Scissors, rock beats scissors, paper beats rock, and scissors bears paper. Ifplayers play the same object, the result is a tie.Your output should be:- The index of the winning player if there is a winner.- 0 if there is a tie- -1 if a player played an invalid object (a number that is not 1, 2, or 3)For example, if we called our function:result = rockPaperScissors([1 2]);result would be 2, as paper beats rock.If we called our functionresult = rockPaperScissors([3 2]);result would be 1 because scissors beats papearrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education