Skip to Main Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate content levelBeginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
700
|
第十七章
[Page-704]
Java 試, Mathematica
面, 使
ImplementJavaInterface
便 成。 使
ImplementJavaInterface
數; 是,
ImplementJavaInterface
指令只 能用在 具體介面 而無法 用於抽 象類別。在 JGAP 中,
FitnessFunction
函式是一個抽象類別,因此我們無法使用
ImplementJavaInterface
令進行實作,於此情況下,我們可以用下列方式建立接合程式碼(adapter)。
藉由以上的演化適應函數,讓我們可於 Mathematica 中使用下列介面。
ch17.indd 700 2014/4/2 下午 04:27:24
17.5 呼叫 Java 函式
|
701
[Page-705]
完成上列程式後,我們便能使用 Mathematica 中建立的函數作為演化適應函數,這個方
法是通用的,你可以用這個方法接合 Java 函式庫中的任意抽象類別。以下我們利
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ubuntu for Non-Geeks, 4th Edition

Ubuntu for Non-Geeks, 4th Edition

Rickford Grant, Phil Bull

Publisher Resources

ISBN: 9789863470106