(function (global, factory) {
  if (typeof define === "function" && define.amd) {
    define(["exports", "rxjs/operators", "../internals/predictValue"], factory);
  } else if (typeof exports !== "undefined") {
    factory(exports, require("rxjs/operators"), require("../internals/predictValue"));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod.exports, global.operators, global.predictValue);
    global.predict = mod.exports;
  }
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _operators, _predictValue) {
  "use strict";

  Object.defineProperty(_exports, "__esModule", {
    value: true
  });
  _exports.default = void 0;
  _predictValue = _interopRequireDefault(_predictValue);

  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

  const predict = function predict({
    intercept,
    weights
  }) {
    return source$ => source$.pipe((0, _operators.map)(row => (0, _predictValue.default)({
      row,
      intercept,
      weights
    })));
  };

  var _default = predict;
  _exports.default = _default;
});
//# sourceMappingURL=predict.js.map