5 Pages

1.interfaces-4up

Course: CS 217, Fall 2009
School: Princeton
Rating:
 
 
 
 
 

Word Count: 1763

Document Preview

10, September 1997 September 10, 1997 Everything is on the Web http://www.cs.princeton.edu/courses/cs217 Texts, Contact Information, Assignments, Lecture slides ... No handouts in class (except blank paper for quizzes) 9 assignments, including a nal project due on Monday at midnight. N O E X T E N S I O N S . A few easy quizzes (15 min each, in-class) Midterm No nal A stack A hash table Interfaces and...

Register Now

Unformatted Document Excerpt

Coursehero >> New Jersey >> Princeton >> CS 217

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
10, September 1997 September 10, 1997 Everything is on the Web http://www.cs.princeton.edu/courses/cs217 Texts, Contact Information, Assignments, Lecture slides ... No handouts in class (except blank paper for quizzes) 9 assignments, including a nal project due on Monday at midnight. N O E X T E N S I O N S . A few easy quizzes (15 min each, in-class) Midterm No nal A stack A hash table Interfaces and Implementations A big program is made up of many small modules Each module implements (does) one thing Mathematical functions Interfaces specify what a module does Implementations specify how a module does it Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Everything is on the Web Page 2 Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Interfaces and Implementations Page 4 September 10, 1997 September 10, 1997 About COS 217 Goals: Prepare for other CS courses (and summer jobs) Learn everything you need to know about ANSI C Master the art of programming - design method, abstraction, interfaces and implementations, style - writing efcient programs This Course is About ... Modules, interfaces and implementations Add_Box_To_Picture (Box,Picture,Position) { ... ... Drawing_Program() { ... do other things Algorithm to implement function ... ... } } Introduction to aspects of other courses Low-level workings of a computer (more in COS 471)) - SUNs SPARC architecture and instruction set Add_Box_to_Picture(B,P,Pos) ... do other things Assembly language programming (more in COS 320 and COS 471) Operating systems (more in COS 318 and COS 461) - Programming using operating system services Whats the module, interface, implementation, client? Object-oriented programming Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: About COS 217 Page 1 Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: This Course is About ... Page 3 September 10, 1997 September 10, 1997 More on Interfaces and Implementations One interface, perhaps many implementations. Why? efciency, different algorithms for different situations, machine dependences Interfaces Modules export interfaces, clients import them Interfaces specify what clients may use or read Everything a client needs to see Data types, variables, function interfaces, text specications, ... Interface and its implementations must agree Clients need see only the interface do not need to understand implementation to use the module may have only the object code for an implementation why might a client want to know more than the interface? They hide implementation details and algorithms In C, an interface is usually a single .h le; e.g. stack.h Interfaces are contracts between their implementations and clients Client responsibilities Checked runtime errors : : Unchecked runtime errors Performance criteria : : rules clients must follow to ensure correctness Clients share interface and implementations avoids duplication and bugs --- implemented once, used often implementations guarantee to detect them, but they are bugs implementations might not detect them implementations must meet them What does this sound like in your programming experience? Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: More on Interfaces and Implementations Page 6 Examples from the real world? Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Interfaces Page 8 September 10, 1997 September 10, 1997 Interfaces and Implementations: An Example Driving an automobile Client, Interface and Implementation: A Stack Interface: steering wheel gears brake accelerator clutch? Implementation: engine and all its details Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Interfaces and Implementations: An Example Page 5 Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Client, Interface and Implementation: A Stack Page 7 September 10, 1997 September 10, 1997 Abstract Data Types (ADTs) Abstract data type: A kind of interface A data type, plus Operations on entities ("variables") of that type Data type: a class of values integers, reals, lists of integers, binary search trees, lookup tables ... #include <assert.h> #include <stdlib.h> #include "stack.h" #define T Stack_T struct T { void *val; T next; }; An Implementation of the Stack ADT stack.c T Stack_new(void) { T stk = calloc(1, sizeof *stk); assert(stk); return stk; } int Stack_empty(T stk) { assert(stk); return stk->next == NULL; } Abstract: Operations permitted are indept. of internal representation Advantages Restricts manipulation of the values to a set of specied operations Hides how the ADT is represented void Stack_push(T stk, void *x) { T t = malloc(sizeof *t); assert(t); assert(stk); t->val = x; t->next = stk->next; stk->next = t; } void *Stack_pop(T stk) { void *x; T s; assert(stk && stk->next); x = stk->next->val; s = stk->next; stk->next = stk->next->next; free(s); return x; } void Stack_free(T *stk) { T s; assert(stk && *stk); for ( ; *stk; *stk = s) { s = (*stk)->next; free(*stk); } A key idea behind object-oriented programming BUT GOOD PROGRAMMING PRACTICE REGARDLESS OF LANGUAGE Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Abstract Data Types (ADTs) Page 10 Convention: In implementation, T is abbreviation of X_T for ADT X. Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: An Implementation of the Stack ADT Page 12 September 10, 1997 September 10, 1997 Implementations Implementations instantiate an interface In C, implementation source code is in .c les The interface is the key Some important things to do: De-couple clients from implementations - Changes in an implementation do not affect clients - Implementations can shared, be e.g. via libraries An ADT Example: A Stack Again The interface stack.h denes a stack ADT and its operations #ifndef STACK_INCLUDED #define STACK_INCLUDED typedef struct Stack_T *Stack_T; extern extern extern extern extern Stack_T Stack_new(void); int Stack_empty(Stack_T stk); void Stack_push(Stack_T stk, void *x); void *Stack_pop(Stack_T stk); void Stack_free(Stack_T *stk); /* It is a checked runtime error to pass a NULL Stack_T or Stack_T* to any routine in this interface or call Stack_pop with an empty stack. */ #endif The type Stack_T is an opaque pointer type Clients can pass a Hide implementation details - Prevents dependency on specic representations and algorithms Stack_T around, but cant look inside one Separate use of an interface from its implementations - User should read specications, not programs Stack_ is a disambiguating prex A convention that helps avoid name collisions in large programs Question: What does #ifndef STACK_INCLUDED do? 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Implementations Page 9 Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: An ADT Example: A Stack Again Copyright Page 11 September 10, 1997 September 10, 1997 Assertions Even checked runtime errors are bugs assert(e) issues a message and aborts the program if e is 0 int Stack_empty(T stk){ assert(stk); return stk->next == NULL; } The Standard C Library Interfaces The ANSI C interfaces (See H&S, Ch 10) assert.h ctype.h errno.h float.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h time.h assertions character mappings error numbers metrics for oating types metrics for integral types locale specics math functions non-local jumps signal handling variable length argument lists standard denitions standard I/O standard library functions string functions date/time functions assert.h (approximately): #ifdef NDEBUG #define assert(e) ((void)0) #else #define assert(e) ((void)((e)|| (fprintf(stderr, \ "assertion failed: file %s, line %d\n", \ __FILE__, __LINE__), abort(), 0))) #endif lcc -DNDEBUG foo.c ... Be careful using assertions e may not be executed if assertions are turned off (why would you do this?) dont put code with side effects in an assertion An ANSI C library provides the implementations re-use, dont re-implement; use libraries Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: The Standard C Library Interfaces Dont want program to crash without a diagnostic (safe programming) Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Assertions Page 14 Page 16 September 10, 1997 September 10, 1997 A Sample Client of the Stack ADT test.c #include <stdio.h> #include <stdlib.h> #include "stack.h" int main(int argc, char *argv[]) { int i; Stack_T s = Stack_new(); for (i = 1; i < argc; i++) Stack_push(s, argv[i]); while (!Stack_empty(s)) printf("%s\n", Stack_pop(s)); Stack_free(&s); return EXIT_SUCCESS; } Programming Style includes stack.h (so it can use the stack ADT) Variable names, indentation, program structure... Why? Who reads your programs? compiler users other programmers Which ones care about style? Which ones do you program for? Copyright test.o is a client of stack.h changing stack.h must re-compile test.c test.o is loaded with stack.o lcc test.o stack.o stack.o is also a client of stack.h changing stack.h must re-compile stack.c 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: A Sample Client of the Stack ADT Page 13 Difference between "macho" programmer and good programmer Well talk more about style later Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Programming Style Page 15 September 10, 1997 The Standard C Library, contd Utility functions stdlib.h: atof, atoi, strtod, rand, qsort, getenv, calloc, malloc, realloc, free, abort, exit, ... String handling string.h: strcmp, strncmp, strcpy, strncpy strcat, strncat, strchr, strrchr, strlen, ... memcpy, memmove, memcmp, memset, memchr Character classication ctype.h: isdigit, isalpha, isspace, ispunct, isupper, islower, toupper, tolower, ... Mathematical functions math.h: sin, cos, tan, asin, acos, atan, atan2, ceil, floor, fabs sinh, cosh, tanh, exp, log, log10, pow, sqrt, Variable-length argument lists stdarg.h: va_list, va_start, va_arg, va_end Non-local jumps setjmp.h: jmp_buf, setjmp, longjmp Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: The Standard C Library, contd Page 18 September 10, 1997 September 10, 1997 Libraries The Standard I/O Library stdio.h specifies a FILE*, a good example of an ADT So why dont people always just use libraries? Its a great idea, but often not implemented well Efciency Specic functionality Mastering big libraries is hard Library design is difcult: generality, simplicity and efciency Libraries may have implementation bugs extern FILE *stdin, *stdout, *stderr; extern extern extern extern extern extern extern extern extern extern extern extern extern extern extern extern extern extern extern extern int fclose(FILE *); FILE *fopen(const char *, const char *); int fprintf(FILE *, const char *, ...); int fscanf(FILE *, const char *, ...); int printf(const char *, ...); int scanf(const char *, ...); int sprintf(char *, const char *, ...); int sscanf(const char *, const char *, ...); int fgetc(FILE *); char *fgets(char *, int, FILE *); int fputc(int, FILE *); int fputs(const char *, FILE *); int getc(FILE *); int getchar(void); char *gets(char *); int putc(int, FILE *); int putchar(int); int puts(const char *); int ungetc(int, FILE *); int feof(FILE *); Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: Libraries Page 17 Do you need to know what a FILE* looks like? Copyright 1995 D. Hanson, K. Li & J.P. Singh Computer Science 217: The Standard I/O Library Page 19
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Kentucky - MA - 533
Introduction to Partial Differential Equations MWF 1212:50pm CB343 Fall 2005Instructor: Russell Brown Office: POT741 Phone: 257-3951 rbrown@uky.edu Office Hours: WF1-2pm and by appointment.Homework 5. Due Wednesday, 19 October 2005. 1. Evans, p.
Laurentian - CS - 425
/* =CS425 - 001A Simple Template C Main ProgramIt is often quite difficult and confusing forstudents to write the first C program which canload an image, do some processing, and then savethe image. This small program is provided tostu
Kentucky - MA - 533
Introduction to Partial Differential Equations MWF 1212:50pm CB343 Fall 2005Instructor: Russell Brown Office: POT741 Phone: 257-3951 rbrown@uky.edu Office Hours: WF1-2pm and by appointment.The midterm exam will ask you to solve 3 of the following
Kentucky - MA - 213
Calculus III MA213:007008Calendar Fall 2004Text Calculus third edition, by James Stewart. Calendar The calendar below gives the dates of exams and a tentative schedule for the sections we hope to cover. The material to be covered will be specied
Princeton - COS - 217
Princeton University COS 217: Introduction to Programming Systems Ish: Development StagesStage 0: Preliminaries Learn the overall structure of ish and the pertinent background information. Study the assignment specification and the assignment supple
Kentucky - ECO - 411
ECO 31 1Midterm ExamFall 2005Multiple Choice: 4 pts. each, circle correct answer. 1. It may be cheaper to produce an input internally rather than to procure it in the market if a) There are economies of scope associated with producing this inpu
Kentucky - MA - 109
MA 109 College Algebra FIRST MIDTERM ANSSPRING 2008 02/06/2008Name:Sec.:There were three different versions of this test. You can tell which version of the exam you had by looking at the rst question. Pay careful attention to both the questi
Kentucky - MA - 109
MA 109 College Algebra FIRST MIDTERM ANSWERSFALL 2007 09/19/2007Name:Sec.:There were four different versions of this test. You can tell which version of the exam you had by looking at the rst question. Pay careful attention to both the quest
Kentucky - MA - 113
MA 113.016 MathExcel Worksheet 1August 24, 20051. Below is a list of &quot;simple&quot; algebra problems. Some of the solutions are correct and some of them are wrong! For each problem consider the following: (a) Is the answer correct? (b) Were there any m
Kentucky - MA - 123
MA 123 Elementary Calculus and its Applications Paper Homework 1-4 Due: 27 June 2008InstructionsFind the answer to each queston on scratch paper rst. Then carefully present your solution method and explain your reasoning. You need to not only tell
Kentucky - MA - 113
MA 113.016 MathExcel Quiz 1September 7, 2005You have 30 minutes to work on this quiz. After you have completed the quiz, bring it to me and I will tell you if you are correct. If any problems are not correct, keep trying until you get them correc
North Texas - PK - 0010
Review: When we want to study something about a population, we pick a sample and generalize from the part to the whole.Chapter 20Expected value and standard error for sampling How we pick the sample is important. Two methods we looked at were s
North Texas - BMH - 0053
Brooke Hinesley CECS 4100.002 (w)Rubric for Butterfly BrochurePoints available Points earned Expected PointsName on paper 7 pictures (drawn) Answered every question(there are 8 total)2 7 8Name the stages of the butterfly correctly Design a
Kentucky - CHE - 538
Principles of Organic Chemistry Prologue olecture 1, page 1My email address is: a.cammers@uky.edu, Feel free to e-mail me about anything. You will find a syllabus on the website. The rules and regulations tell me that I do not have to print one
Kentucky - MS - 714
Math 714 Fall 2009 Margaret ReaddyCombinatorics of Coxeter GroupsCoxeter groups arise in nature, whether as symmetry groups of regular polytopes, tesselations of the plane, juggling patterns, or more generally, as reflections. We will look at Cox
Carnegie Mellon - CS - 10725
LP duality cheat sheetmin c'x + d'y s.t. Ax + By p Ex + Fy = q x free, y 0 max p'v + q'w s.t. A'v + E'w = c B'v + F'w d v 0, w freeSwap RHS and objective Swap max/minTranspose constraint matrix +ve vars yield , free vars yield =Linear feas
Princeton - COS - 597
DP Notes, 10/81Kolmogorov Extension TheoremBefore we get into the lecture notes, lets look at the Kolmogorov Extension Theorem. This section is a lightly modied version of Erhan Cinlars treatment of the subject (Ch.4, Sec. 4). We would like to
Princeton - CS - 341
Graph Theory: Matchings and Hall's TheoremCOS 341 Fall 2002, lecture 19Definition 1 A matching M in a graph G(V, E) is a subset of the edge set E such that no two edges in M are incident on the same vertex. The size of a matching M is the number of
Kentucky - CHE - 442
Wofford - PSY - 230
MovementWhere are we going today? 1Muscle Types3 different types of muscles: 1. Smooth muscle - controls internal organs 2. Cardiac muscle - specialized for heart 3. Striated muscle (skeletal) - controls movement of the body in the enviro
Kentucky - MA - 551
[Munkres, Problem 9, page 171] Problem. Generalize the tube lemma as follows: Let A and B be subspaces of X and Y , respectively; let N be an open set in X Y containing A B. If A and B are compact, then there exist open sets U and V in X and Y , re
Kentucky - MA - 108
Syllabus for MA 108R: Intermediate Algebra, Sections 7 &amp; 8Section 7: MWF 2:00-2:50, CB 335 Section 8: MWF 3:00-3:50, CB 335 Textbook: Intermediate Algebra, 3rd Ed. by Chris VancilInstructor InformationEric Clark Oce: 806 Patterson Oce Tower Oce H
Kentucky - MA - 551
[Munkres, Problem 3, page 145] Problem. Let 1 : R R - R be projection on the first coordinate. Let A be the subspace consisting of all points x y for which either x 0 or y = 0 (or both); let q : A - R be obtained by restricting 1 . Show that q is
Kentucky - MA - 551
[Munkres, Problem 5, page 83] Problem. Show that if A is a basis for a topology on X, then the topology generated by A equals the intersection of all topologies on X that contain A. Prove the same if A is a subbasis. Solution: Since a basis is also a
Kentucky - MA - 551
[Munkres, Problem 2, page 194] Problem. Show that if X has a countable basis {Bn }, then every basis C for X contains a countable basis for X. [Hint: For every pair of indices n, m for which it is possible, choose Cn,m C such that Bn Cn,m Bm .] So
North Texas - AGW - 0012
Five Senses Song Five senses, five senses We have them. We have them. Seeing, hearing, touching, Tasting and smelling. There are five. There are five.Sense of TouchArt and Movement Activity Today we will be doing some messy painting with our feet
North Texas - FINA - 5220
Course SyllabusFINA 5220.002: Financial Derivatives Tuesdays 6:30 to 9:20PM, GAB 206 Professor:Spring 2008Dr. John Kensinger CBA 168G email: kensinge@unt.edu 940-565-3050 (department office) 940-566-4234 (fax) http:/www.coba.unt.edu/firel/Kensi
Kentucky - GEN - 200
GEN 200 Section 003 (Wagner) Reading/Writing Assignment due Thursday, 30 April 2009Read the items listed below, and take notes as you read (handwritten notes are acceptable). When you come to class on Thursday, 30 April, be prepared to discuss all
Princeton - MC - 019
~No:1381 3 , 1944.Phone C a l lGERMANY. ..(1). I have seen a r e p o r t r e g a r d i n g t h eformation i n t h e United S t a t e s o f a C o u n c i l f o r Democratic Germany.. .. ',,. . . , . . ... . , :. . .. .-.
Princeton - MC - 019
. . .Telegram No. 1141London Dated: 9 March 1945, 03:lO Rec'd: 9 March 1945, 08:15D 'ETATAMLEGAT I O NBERNSasac. Glavin and Sasac from Direc Sasac Cosop information 1 0 and 399 Gamble Black Casoady Jolis ParBs 1 109 and 154 Washington.I.
Princeton - MC - 019
Geneva, luovember 18Our f r i e n d s in the r u e des Grenges asked me t o t e l l you t h a t , accordiug t o t h e i r infonilation, t h e Geruas i nournanla are ngpt bothering t o put n in h e g t h g np,Liances i n t h e cantoments in t h a t
Princeton - MC - 019
O c t o b e r 18; 1950UEYORAiVDUId TO :Mr.Mr,Dulles PhenixFROM:A s r e q u e s t e d i n y o u r memorandum of t h e s i x t e e n t h ,I r e t u r n t o you M r .Benton'sl e t t e r and e n c l o s u r e r e g a r d i n g this mater
Princeton - MC - 019
~~IAY TL ~ ~ ~.-January 4 , 1944.~ ~ ~.... ..(1). A somewhat be'lated, -but s t i l l.~i n t e r e s t i n g - r e p o r t ' has come through from~. ~I t a l i a n sources r e g a r d i n g t h e f i r s t f o r m a l-.~
Princeton - MC - 019
.6cDiaryMr.18 S e p tB u n d y ' s Secretary a t White House: ,I 1M r . Bundy's s e c r e t a r y called t o advised t h a t M r . Bundy was r e t u r n i n g M r . D u l l e s ' c a l l of 1 7 Sept. M r , Dulles was attending Commissi
Princeton - MC - 019
./Telegram No.Dated: 25 January 1945D 'ETATWATCH 418 POPPY 437 LuMpIn 499 Report Nr, B-l3'ZO, K-28 gives following regarding strength Austrian Maquis in mid-January (also see our report B-951) :AMPOLAD CASERTA SNAFUI, South Tirol includin
Princeton - CL - 1933
Kentucky - MA - 322
HW 8 - February 4,9,11 2009 1. Make sure you know and understand the material from pages 85-87. 2. Section 1.9: Exercises - 4,8,9,13,16,18,22,29 3. Read Section 1.9 4. Read section 2.1 5. Exercises: 1 (for practice), 7,8,9,12,18,21,22,28
Princeton - CHE - 246
4. IDEAL GAS MIXTURE For a system of molecules that do not interact, the equation of state can be derived from statistical mechanics as PV =iN i RT N RT(4.1)The partial molar volumes follow directly from (4.1) and the definition of Vi :Vi =
North Texas - CHEM - 3510
t e#v c j z {yi`g@vvvd}s tiut 6vvt } ~sUup } YtD p zl|yv`gj wivst}!TsUYt c5 t p c lv`yzzl |y FsU T {vge}v qGTcvfueUtvqc}s quuY~p#nvp o w y w q g z c x p }r W dmdybWStUSUehqclb`e`jvQ8TytUShHiWbS i k c ihiydcTW@v@iWbiSrvisUFWQFvWex6uwfQ3
Carnegie Mellon - WEEK - 720
36-720: ANOVA-style Logit ModelsBrian Junker October 3, 2007 Prospective vs Retrospective Studies Logit models: Logistic Regression with Discrete Covariates Logit vs. log-linear models Example: Muscle Tension136-720 October 3, 2007Prospect
Carnegie Mellon - WEEK - 720
36-720: Latent Class ModelsBrian Junker October 17, 2007 Latent Class Models and Simpson's Paradox Latent Class Model for a Table of Counts An Intuitive E-M Algorithm for Fitting Latent Class Models Deriving the E-M Algorithm Example Issues an
Carnegie Mellon - WEEK - 720
36-720: Model Selection &amp; Model EvaluationBrian Junker September 26, 2007 Model SelectionOverview Stepwise ProceduresOverview The Initial Model(s) Several Stepwise Criteria Staying Within Model Families All-Subsets Methods Residuals, Inuence,
Carnegie Mellon - WEEK - 720
36-720: Zero CellsBrian Junker September 24, 2007 Zero Counts in Tables Fixed (Structural) Zeros and Incomplete Tables Sampling (Random) Zeros and Small Samples136-720 September 24, 2007Zero Counts in TablesSometimes we see tables that hav
Carnegie Mellon - WEEK - 720
36-720: The Rasch ModelBrian Junker October 15, 2007 Multivariate Binary Response Data Rasch Model Rasch Marginal Likelihood as a GLMM Rasch Marginal Likelihood as a Log-Linear Model Example For more reading, see: Rasch, G. (1980). Probabilist
Carnegie Mellon - WEEK - 720
Generalized linear mixed model fit using PQL Formula: y ~ i + j + (1 | i) Data: lltm201 Family: binomial(logit link) AIC BIC logLik deviance 1404 2416 -496.2 992.4Random effects: Groups Name Variance Std.Dev. i (Interce
Carnegie Mellon - PHYSICS - 33340
Week 4The deeper meaning of 2Recall Least-Squares Fitting(Bevington, Chapter 6+ READ!)yy fit = a + bxFit parameters are of great importance (xi,yi i) Expect repeat measurement of point to fall within 1 about 2/3 times. ith xVary parameter
Carnegie Mellon - PHYSICS - 33340
Week 9More Issues in Non-linear FittingGeneric Fitting AlgorithmLoad {xi, yi, i}N Select initial values for {aj}n Set 2old = huge Evaluate 2new 2 &lt; Set 2old=2newnoBy hand or by Monte Carlo0.01 ?yesDeclare Victory! Compute ajsGrid Search
Carnegie Mellon - PHYSICS - 33340
Week 6Combining Measurements Goodness of Fits: some examplesBest way to Combine Numbers Suppose we have N measurements of the same physical quantity. How best to combine? Must test agreement or internal consistency Plot the data to get a visual
North Texas - PHYS - 1710
Physics 1710 Chapter 8Potential EnergyPotential Energy GraphFxFx = -dU/dx = -1 + xU xx Equilibrium pointU = x- 0.5 x2Xo = 1Physics 1710 Chapter 8Potential Energy 1 LectureF = - U = negative gradient of U. The Potential Energy graph
Princeton - MC - 019
..-COPY-.T5.C. D. Jackson9 Rockefeller Plaza New YorkF e b r u a r y 121359- .-JJ e r A l l e i ~ :Many thanks f o r your thoughtful l e t t e r of the 7th. Iquite a g r e e with you that the n e w top guy Beems t o be just I
Princeton - MC - 019
i: .. . . : : . ' ., . . .:.-. . , . ' e' :' : . : . :'..':. .:..'.I. l .-:.I. . .I; ;*. . . ' . .*.;-; . -.:.,.4... .:.:. . . . . . . . . . . . : . .-. . . . . . . . .'&gt; _.. - t. . .:. . . . .: . .,. . * -. .. . . .
Princeton - MC - 019
CRC R a d i oPBWHAM15 J a n u a r yC a p i t a l Byline, P a t t y C a v i n1962AUTUOK i)F &quot;CIA;' THE I N S I D E STORY&quot;PATTY CAVIN; &quot; W a s h i n g t o n newsman, Andrew Tully, h a s i n h i s j o u r n a l i s t i c career, c o v e r e d
Princeton - MC - 019
. .N EiVSAYS COMMANDOS DIDN'T RATE TRIAL^Nuernberg, May 14 (A. P.1.A m i r a l Gcrhard \Vagliw COll. tended before the International Military Tribunal today that i t was &quot;perfectly proper&quot; for the Germans to shoot uniformed Brit-# ish Commandos
Princeton - MC - 019
,I*, -Kr. 197Phone C a l lAueust 1 7 , 1 9 4 4 .G 9 3WAUYI have h e r e t h e i m p r e s s i o n s of a Germanwoman o f t h e p e a s a n t class who vvorks i n S w- t z e r i l a n d and who h a s j u s t r e t u r n e d h e r e a f
Princeton - MC - 019
,s l.. .y,- - .6 J a n u a r y 1959SUBJECT: E r i c JohnstonIs Dinner f o r Mikoyan1. Mikoyan talked f o r two h o u r s one-half h o u r of which w a s p r a c t i c a l l y - a speech giving the u s u d Communist &quot;peace&quot; l i n e . He a
North Texas - PPT - 0405
The Value of Assessments: What does it mean for you?Institute for the Study of Transfer Students Ft. Worth, Texas - January 26, 2004Our M ission The College Board's mission is to connect students to college success and opportunity. We are a not
Kentucky - ECON - 477
Economics 477 Labor Economics Instructor: Professor Kenneth Troske Winter 2008 Office: 335AY Business &amp; Economics Bldg. Class Meeting Time: 2:00-3:15 M, W Office Hours: 3:30 - 4:30 M, W and by appt. Classroom: BE 201 Office Phone: 257-1282 E-mail: kt
Kentucky - ECON - 477
Lecture 4 Labor Demand Elasticities1Own-Wage Elasticity of DemandWage 4 Q = 8 - 2P 3 ii = -1 2 ii = - The lower portion of a downward sloping labor demand curve is less elastic than the upper portion.1 ii = 0 2 4 8 6 EmploymentOwn-Wage E