// Snowman.java Author: Lewis/Loftus // Demonstrates basic drawing methods and the use of color. import javax.swing.JApplet; import java.awt.*; public class Snowman extends JApplet { // Draws a snowman. public void paint (Graphics page) { final int MID = 150; final int TOP = 50; setBackground (Color.cyan); page.setColor (Color.blue); page.fillRect (0, 175, 300, 50); // ground page.setColor (Color.yellow); page.fillOval (-40, -40, 80, 80); // sun page.setColor (Color.white); page.fillOval (MID-20, TOP, 40, 40); // head page.fillOval (MID-35, TOP+35, 70, 50); // upper torso page.fillOval (MID-50, TOP+80, 100, 60); // lower torso page.setColor (Color.black); page.fillOval (MID-10, TOP+10, 5, 5); // left eye page.fillOval (MID+5, TOP+10, 5, 5); // right eye page.drawArc (MID-10, TOP+20, 20, 10, 190, 160); // smile page.drawLine (MID-25, TOP+60, MID-50, TOP+40); // left arm page.drawLine (MID+25, TOP+60, MID+55, TOP+60); // right arm page.drawLine (MID-20, TOP+5, MID+20, TOP+5); // brim of hat page.fillRect (MID-15, TOP-20, 30, 25); // top of hat } } 2-49/30
View full slide show




for Loop Behavior #6 int product = 1; int count; for (count = 1; count <= 5; count++) { product = product * count; } /* for count */ The above program fragment behaves identically the same as: /* Program Trace */ int product = 1; /* product = 1 */ int count; /* count is undefined */ count = 1; /* count == 1, product == product *= count; /* count == 1, product == count++; /* count == 2, product == product *= count; /* count == 2, product == count++; /* count == 3, product == product *= count; /* count == 3, product == count++; /* count == 4, product == product *= count; /* count == 4, product == count++; /* count == 5, product == product *= count; /* count == 5, product == count++; /* count == 6, product == for Loop Lesson 1 CS1313 Spring 2019 1 */ 1 */ 1 */ 2 */ 3 */ 6 */ 6 */ 24 */ 24 */ 120 */ 120 */ 29
View full slide show




Entity Tables, Relationship Tables We Classify using any Table (as the Training Table) on any of its columns, the class label column. S# SNAME GEN C# CNAME AGE Student Customer C# S# GR TranID Count Enrollments Educational buys C# CNAME ST TERM I# Course Item Iname Market Basket Date Suppl Date Price Medical Expert System: Using entity Training Table Patients(PID,Symptom1,Symptom2,Symptom3,Disease ) and class label Disease, we can classify new patients based on symptoms using Nearest Neighbor, Model based (Decision Tree, Neural Network, SVM, SVD, etc.) classification. UID CNAME AGE Netflix Contest: Using relationship TrainingTable, Rents(UID,MID,Rating,Date) and class label Rating, classify new (UID,MID,Date) tuples. PID PNAME Symptom1 Symptom2 Symptom3 Disease User TranID Rents Rating Netflix Date Patients MID Mname Date Movie Ward is in Has WID Medical Capacity Wname How (since there are no feature columns really)? We can let Near Neighbor Users vote? What makes a user, uid, "near" to UID? If uid rates similarly to UID on movies, mid 1, ..., mid. So we use correlations for near instead of distance. This is typical when classifying on a relationship table. We can let Near Neighbor Movies vote? What makes a movie, mid, "near" to MID? If mid is rated similarly to MID by users, uid 1, ..., uid.. Here we use correlations for near instead of an actual distance once again. We Cluster on a Table also, but usually just to "prepare" a classification TrainingTable (move up a semantic hierarchy, e.g., in Items, cluster on PriceRanges in 100 dollar intervals or to determine classes in the first place (each cluster is then declared a separate class) ). We do Association Rule Mining (ARM) on relationships (e.g., the Market Basket Research; ARM on "buys" relationship).
View full slide show




Product Attributes Developing a Product or Service Involves Defining the Benefits that it Will Offer Such as: Ability of a Product to Perform Product Product Quality Quality Ability of a Product to Perform Its Its Functions; Functions; Includes Includes Level Level & & Consistency Consistency Product Product Features Features Differentiates Differentiates the the Product Product from from Competitors’ Competitors’ Products Products Product Product Style Style & & Design Design Process Process of of Designing Designing aa Product’s Product’s Style Style & & Usefulness Usefulness 8-6
View full slide show




for Loop With Explicit Increment #3 int product; int count; product = 1; for (count = 1; count <= 5; count += 2) { product *= count; } /* for count */ The above program fragment behaves identically to: int product = 1; int count; count = 1; product *= count; count += 2; product *= count; count += 2; product *= count; count += 2; /* /* /* /* /* /* /* count count count count count count count == == == == == == == 1, 1, 3, 3, 5, 5, 7, for Loop Lesson 2 CS1313 Spring 2019 product product product product product product product == 1 */ == 1 */ == 1 */ == 3 */ == 3 */ == 15 */ == 15 */ 9
View full slide show




KU Group Consumers What to Share with Each KU Group Instrumental Use: Must Instrumental Use: Must demonstrate value of product demonstrate value of to end users (clinician or their product to end users via clients) via informational product packaging and literature, conference marketing efforts. presentations and marketing efforts. How to Reach Each Group Use sales representatives, product training sessions, news media (print, broadcast and internet based forms); product Use news media placement in stores. Offer Use email, phone calls (targeted print, product demonstrations at and web links to news broadcast and internet conferences and tradeshows. stories regarding the based forms); product Offer assessment tools that product. Report in formal placement in stores; help determine if a product is annual performance demonstration packages appropriate for a client, or the report. and trial use of product. ideal configuration, accessories, etc. for product. Provide demonstration packages and trial use of product. Anticipated Knowledge Translation Outcomes Clinicians Policy Makers Researchers Brokers Manufacturers Strategic Use: If public funds were used for product development, demonstrate return on investment (ROI). Conceptual Use: Provide information on path to market, barriers encountered and carriers used to overcome barriers to provide product development insights to other researchers. Conceptual Use: Demonstrate ROI (financial, university publicity, student training, etc.). Strategic Use: Demonstrate ROI and identify partnering opportunities with companies producing complementary products. Innovation Outputs. Consumers can use products, leading to a better QoL. Clinicians may use products directly or recommend products, leading to improved QoL. Present findings at research oriented conferences Use formal reports, (RESNA, etc.). Use email, phone calls and research papers and power face to face meetings. point presentations. Researchers will gain a greater appreciation and understanding of the Policy makers can share Knowledge to Axtion (KTA) ROI information with process, leading to an oversight organizations increased liklihood that new (ex. Office of Management research will be conducted and Budget). using the Need to Knowledge and KTA models. Brokers can use ROI information to justify future investments in similar products. Face to face meetings may be most effective. Seek out manufacturers at offices, conferences and tradeshows. Manufacturers can increase ROI by teaming up with companies selling complementary products.
View full slide show