Example NumVector vectorLogInnerProduct 001

 

 

Description

The vectorLogInnerProduct function returns the hyperbolic log inner product of the two Number Vector arguments x1 and x2.

 

Details

(setq x1 #(num| 1 2 3)) Returns: #<NumVector 123456>
(setq x2 #(num| 6 8 9)) Returns: #<NumVector 234567>
(vectorLogInnerProduct x1 x2) Returns: 3.912023005428

Notes and Hints

The inner or dot product of two number vectors, of length N, is defined as follows:

(setq innerProduct 0)

(loop for n from 0 until N do (setq innerProduct (+ innerProduct (* x1[n] x2[n]))))

 

Related Examples

Here are examples of the vectorLogInnerProduct function at work.

NumVector vectorLogInnerProduct 001

 

Function Links

Here is the link to the current function used in this example.

vectorLogInnerProduct

Here are a number of links to other related functions.

vectorBipolarInnerProduct(NumVector) vectorCosineInnerProduct(NumVector) vectorCubeInnerProduct(NumVector) vectorExpInnerProduct(NumVector)
svmRegression(NumVector) vectorInnerProduct(NumVector) vectorBinaryInnerProduct(NumVector) vectorQuartInnerProduct(NumVector)
vectorSigmoidInnerProduct(NumVector) vectorSineInnerProductvectorQuintInnerProduct(NumVector) vectorSquareInnerProduct(NumVector) vectorTanInnerProduct(NumVector)
vectorTanhInnerProduct(NumVector)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

NumVector Number

Here are a number of links to examples having similar argument types.

BitVector bitToNumberVector 001 BitVector inside 007 BitVector setq 024 Complex * 002
Complex / 002 Complex compare 021 Complex cos 002 Complex exp 002
Complex expt 002 Complex log 002 Complex mod 002 Complex sqrt 002
Complex tan 002 Date date 001 Date day 001 Date days360 001
Date getTickCount 001 Date hour 001 Date isType 014 Date julian 001
Date minute 001 Date month 001 Date now 001 Date second 001
Date setq 019 Date sizeof 012 Date time 001 Date time 002
Date today 001 Date year 001 Dictionary isDictionary 001 FltVector setq 019
Function isType 015 Function sizeof 013 IntVector setq 020 Integer binaryNand 001
Integer binaryNor 001 Integer binaryNxor 001 Integer bitwiseAnd 001 Integer bitwiseNand 001
Integer bitwiseNor 001 Integer bitwiseNxor 001 Integer bitwiseOr 001 Integer bitwiseShiftLeft 001
Integer bitwiseShiftRight 001 Integer bitwiseXor 001 Integer fact 001 Integer isInteger 001
NumVector addMethod 021 NumVector append 008 NumVector apply 007 NumVector binaryInsert 006
NumVector binarySearch 007 NumVector bitToNumberVector 002 NumVector cdr 008 NumVector compare 016
NumVector compareEQ 014 NumVector compareGE 014 NumVector compareGT 014 NumVector compareLE 014
NumVector compareLT 014 NumVector compareNE 014 NumVector comparison 014 NumVector copy 008
NumVector defmethod 019 NumVector delete 011 NumVector insert 007 NumVector inside 006
NumVector isAtom 007 NumVector isEqual 015 NumVector isIdentical 014 NumVector isNumberVector 001
NumVector isObject 009 NumVector isType 018 NumVector length 010 NumVector map 007
NumVector mapc 007 NumVector member 006 NumVector methodsOf 019 NumVector new 011
NumVector objectToNumVector 001 NumVector ref 024 NumVector remove 006 NumVector resize 008
NumVector reverse 005 NumVector send 017 NumVector setCdr 008 NumVector setLastCdr 008
NumVector setq 021 NumVector sizeof 016 NumVector sort 015 NumVector svmRegression 001
NumVector type 018 NumVector uniqueInsert 006 NumVector vectorBinaryInnerProduct 001 NumVector vectorBipolarInnerProduct 001
NumVector vectorCosineInnerProduct 001 NumVector vectorCubeInnerProduct 001 NumVector vectorExpInnerProduct 001 NumVector vectorFill 005
NumVector vectorInnerProduct 001 NumVector vectorLogInnerProduct 001 NumVector vectorQuartInnerProduct 001 NumVector vectorQuintInnerProduct 001
NumVector vectorSigmoidInnerProduct 001 NumVector vectorSineInnerProduct 001 NumVector vectorSquareInnerProduct 001 NumVector vectorTanInnerProduct 001
NumVector vectorTanhInnerProduct 001 Number * 001 Number + 001 Number - 001
Number / 001 Number abs 001 Number add1 001 Number addMethod 014
Number addi 001 Number asin 001 Number atan 001 Number avg 001
Number compare 011 Number compareEQ 011 Number compareGE 011 Number compareGT 011
Number compareLE 011 Number compareLT 011 Number compareNE 011 Number comparison 010
Number cos 001 Number cosh 001 Number deg 001 Number divi 001
Number exp 001 Number expt 001 Number fact 001 Number floor 001
Number fraction 001 Number isEqual 009 Number isEven 001 Number isExact 001
Number isIdentical 009 Number isInexact 001 Number isMoney 001 Number isNegative 001
Number isNull 001 Number isNumber 001 Number isOdd 001 Number isPositive 001
Number isType 013 Number isZero 001 Number kurtosis 001 Number log 001
Number log10 001 Number log2 001 Number logbase 001 Number max 001
Number median 001 Number min 001 Number mod 001 Number modi 001
Number muli 001 Number nadd 001 Number ncompareGE 001 Number ncompareGT 001
Number ncompareLE 001 Number ncompareLT 001 Number ndiv 001 Number nmod 001
Number nmul 001 Number nsub 001 Number number 001 Number pi 001
Number product 001 Number rad 001 Number random 001 Number randomize 001
Number range 001 Number ref 019 Number round 001 Number setq 018
Number sign 001 Number sin 001 Number sinh 001 Number sizeof 011
Number skew 001 Number sqrt 001 Number srandom 001 Number stdev 001
Number stdevp 001 Number sub1 001 Number subi 001 Number sumsqr 001
Number tan 001 Number tanh 001 Number type 013 Number var 001
Number varp 001 ObjVector cdr 009 ObjVector setq 022 ObjVector sort 016
PcodeVector setq 023 ShortVector setq 021 String isChar 001 String isCharAlphabetic 001
String isCharAlphanumeric 001 String isCharLowercase 001 String isCharName 001 String isCharNumeric 001
String isCharUppercase 001 String isCharWhitespace 001 String isEqual 001 String isEqual 002
String isObject 001 String isString 001 String isText 001 String isType 001
String isType 002 String isType 003 String parse 001 String sizeof 001
String string 001 String string 002 String string 003 String type 001
Symbol isCharName 002 Symbol isCharNumeric 002 Symbol isObject 002 Symbol isSymbol 001
Symbol isType 004 Symbol sizeof 002 Symbol type 002

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.