THE DESIGN PATTERNS JAVA COMPANION 1. Creational Patterns 17 The Factory Pattern 18 How a Factory Works 18 Sample Code 18 The Two Derived Classes 19 Building the Factory 20 Factory Patterns in Math Computation 22 When to Use a Factory Pattern 24 Thought Questions 25 The Abstract Factory Pattern 26 A GardenMaker Factory 26 How the User Interface Works 28 Consequences of Abstract Factory 30 Thought Questions 30 The Singleton Pattern 31 Throwing the Exception 32 Creating an Instance of the Class 32 Static Classes as Singleton Patterns 33 Creating Singleton Using a Static Method 34
标签: Creational COMPANION PATTERNS Patterns
上传时间: 2013-12-20
上传用户:xwd2010
kalman滤波,扩展的kalman滤波(EKF),unscented Kalman filter(UKF),基于EKF和UKF混合模型的IMM实现,以及配套的Rauch-Tung-Striebel和two-filter平滑工具,一个很好用的框架
上传时间: 2016-10-17
上传用户:yangbo69
内存管理程序,功能与FASTMM相似,PLEASE NOTE: There are two ways to install BigBrain. You may use the memory manager code natively compiled into your EXE or you can use an included external DLL which will allow you to share memory across multiple DLLs with one central place for memory management. Using the DLL allows your application to share strings, and serves the same purpose as the ShareMem unit included with Delphi. BigBrainShareMem.dll should be 100% compatible with the DelphiMM.dll and could even simply be renamed to DelphiMM.dll to simplify deployment.
上传时间: 2014-12-02
上传用户:虫虫虫虫虫虫
For solving the following problem: "There is No Free Lunch" Time Limit: 1 Second Memory Limit: 32768 KB One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free. However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.
标签: Limit following solving problem
上传时间: 2014-01-12
上传用户:362279997
This paper presents a visual based localization mechanism for a legged robot. Our proposal, fundamented on a probabilistic approach, uses a precompiled topological map where natural landmarks like doors or ceiling lights are recognized by the robot using its on-board camera. Experiments have been conducted using the AIBO Sony robotic dog showing that it is able to deal with noisy sensors like vision and to approximate world models representing indoor ofce environments. The two major contributions of this work are the use of this technique in legged robots, and the use of an active camera as the main sensor
标签: localization mechanism presents proposal
上传时间: 2016-11-04
上传用户:dianxin61
The files in this directory comprise ANSI-C language reference implementations of the CCITT (International Telegraph and Telephone Consultative Committee) G.711, G.721 and G.723 voice compressions. They have been tested on Sun SPARCstations and passed 82 out of 84 test vectors published by CCITT (Dec. 20, 1988) for G.721 and G.723. [The two remaining test vectors, which the G.721 decoder implementation for u-law samples did not pass, may be in error because they are identical to two other vectors for G.723_40.]
标签: implementations directory reference comprise
上传时间: 2014-01-22
上传用户:Breathe0125
M3GExport enables developers to export complex 3D animated scenes from Maya® directly to Mobile 3D Graphics file format (M3G), the emerging 3D file format for mobile 3D games. Created by the developers of JBenchmark3D - the leading performance measurement tool for mobile 3D graphics, M3GExport lets use sophisticated features of M3G format like skeletal animation, morphing meshes, triangle stripping and other useful optimisations. M3GExport for Maya is available in two editions, Limited and Standard. The Standard version contains sophisticated optimisation options used mostly by commercial game developers.
标签: developers M3GExport animated directly
上传时间: 2014-08-11
上传用户:xjz632
* The keyboard is assumed to be a matrix having 4 rows by 6 columns. However, this code works for any * matrix arrangements up to an 8 x 8 matrix. By using from one to three of the column inputs, the driver * can support "SHIFT" keys. These keys are: SHIFT1, SHIFT2 and SHIFT3.
标签: keyboard However assumed columns
上传时间: 2016-11-14
上传用户:ardager
We describe and demonstrate an algorithm that takes as input an unorganized set of points fx1 xng IR3 on or near an unknown manifold M, and produces as output a simplicial surface that approximates M. Neither the topology, the presence of boundaries, nor the geometry of M are assumed to be known in advance — all are inferred automatically from the data. This problem naturally arises in a variety of practical situations such as range scanning an object from multiple view points, recovery of biological shapes from two-dimensional slices, and interactive surface sketching.
标签: demonstrate unorganized algorithm describe
上传时间: 2013-12-18
上传用户:xc216
Flex chip implementation File: UP2FLEX JTAG jumper settings: down, down, up, up Input: Reset - FLEX_PB1 Input n - FLEX_SW switches 1 to 8 Output: Countdown - two 7-segment LEDs. Done light - decimal point on Digit1. Operation: Setup the binary input n number. Press the Reset switch. See the countdown from n down to 0 on the 7-segment LEDs. Done light lit when program terminates.
标签: down implementation settings UP2FLEX
上传时间: 2014-01-21
上传用户:sclyutian